Skip to content

util: fix gcc vsnprintf overflow

xantares requested to merge (removed):sprintf-win32 into master

Anything higher than INT_MAX results in overflow although the parameter is declared as size_t.

Worse, with (size_t)-1 it is silently ignored and Woverflow is not emitted.

Closes #4226 (closed)

cc @pal1000 @jekstrand @jrfonseca

Edited by xantares

Merge request reports