prost icon indicating copy to clipboard operation
prost copied to clipboard

I found two recursive functions which may cause stack overflow?

Open Ren-ZY opened this issue 3 years ago • 1 comments

Hello~ We have found two recursive functions in crate prost-build.

  1. add_message at prost-build/src/message_graph.rs:60:5: 60:68
  2. append_message at **prost-build/src/code_generator.rs:120:5: 120:59

Maybe we can construct a nested input to make this two functions recursive deeply? For example: a nested DescriptorProto?

Ren-ZY avatar May 21 '22 11:05 Ren-ZY

Do you have an example that shows this stack overflow?

LucioFranco avatar May 23 '22 18:05 LucioFranco