Skip to content

Stack overflow when parsing message #267

@dbrgn

Description

@dbrgn

When parsing certain messages, the process aborts with a stack overflow.

I made a reproducer:

prost-stackoverflow-reproducer$ cargo run
     Running `target/debug/prost-stackoverflow-reproducer`
Hello, world!

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)

Potentially the data requests allocation of a buffer that's larger than the actually available data? (23 KiB input data is not that large...)

(Found through afl.rs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions