ludocode / mpack

MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]
MIT License
521 stars 82 forks source link

Error handler segfault #98

Closed kustra closed 2 years ago

kustra commented 2 years ago

This line results in a segfault in case of an error if I don't have an error handler set up: https://github.com/ludocode/mpack/blob/df5860e8e49b16ad9afcafd9fe8f36008b066a91/src/mpack/mpack-writer.c#L1769

I see that error_fn is checked for NULL everywhere else before call.

Nice work, btw. I like the API design.

ludocode commented 2 years ago

Fixed! Sorry about this. I need to plan a release soon to get a few of these builder bugs out.