Commit Graph

4 Commits

Author SHA1 Message Date
Marcin Wojdyr
3366d1e797 stb_sprintf: avoid left shift of negative value
fix undefined behaviour reported by UBSan:
  runtime error: left shift of negative value -9223372036854775808
and add a test case.

fixes #800
2020-02-03 20:17:03 +01:00
Sean Barrett
81b4fd7342 test_sprintf: clean up for MSVC6 & integration to codebase 2020-02-02 07:37:20 -08:00
Marcin Wojdyr
e0a0328b43 add tests to tests/test_sprintf.c 2018-04-29 16:50:25 +01:00
Sean Barrett
085ba4b627 add compilation tests that have no other includes to avoid accidental dependencies 2018-01-30 05:31:18 -08:00