zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.62k stars 2.35k forks source link

#4494 added calls to snprintf, but did not take into account that snprintf can truncate #4507

Closed daira closed 1 year ago

daira commented 1 year ago

If snprintf truncates, it returns the number of characters that would have been written without truncation. Add assertions to cover this case.

See also https://github.com/zeromq/libzmq/pull/4494/files#r1092829210

bluca commented 1 year ago

Please add a relicense statement https://github.com/zeromq/libzmq/tree/master/RELICENSE