Commit Graph

7 Commits

Author SHA1 Message Date
Sean Barrett
828e6cfdf7 update test 2020-02-05 04:31:55 -08:00
Sean Barrett
2805fe39ab Merge branch 'fix_ub_shift' of https://github.com/wojdyr/stb into working 2020-02-05 03:15:56 -08:00
Sean Barrett
f06f586d18 sprintf warnings 2020-02-05 03:10:07 -08:00
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