I ran into a scenario where I'm hitting an assert (linked below) in mpack_write_str() when I pass NULL for data and 0 for the count. It seems reasonable to be able to pass this combination. No matter what, the data value shouldn't be dereferenced right?
I ran into a scenario where I'm hitting an assert (linked below) in
mpack_write_str()
when I passNULL
for data and0
for the count. It seems reasonable to be able to pass this combination. No matter what, thedata
value shouldn't be dereferenced right?https://github.com/ludocode/mpack/blob/70627c79632cd52c39147cf489423d19f2d66a18/src/mpack/mpack-writer.c#L1249