akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.06k stars 815 forks source link

reduce message by 20 to make room for context and prevent truncation … #661

Open Panometric opened 1 year ago

Panometric commented 1 year ago

Fixes warning by reserving 20 bytes for context.

See: https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8

coveralls commented 1 year ago

Coverage Status

coverage: 96.231%. remained the same when pulling 72722d7e1255ea63f7d4e3bc8dbd7727702ef8c8 on Panometric:Fix_error_set_format_truncation into 60097f0096f337393b42d0ad13d403294ff4e782 on akheron:master.