Nanopb: Failed decoding frees an uninitialized pointer in a static submessage array

Fixed · medium · Memory-safety bug

With PB_ENABLE_MALLOC, malformed input that meets a static submessage array with pointer fields makes decoding free an unallocated pointer, which corrupts memory. This needs an unusual schema and a destination struct that was not zeroed.

Found: ; reported: ; status since: . Reporter: genproof team

Page for this report · Public report · Fix or proposed fix (see status)

Open in the showcase. Record generated .