]> granicus.if.org Git - curl/commit
test557: fix ubsan runtime error due to int left shift
authorJay Satiro <raysatiro@yahoo.com>
Mon, 29 May 2017 22:04:53 +0000 (18:04 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 29 May 2017 22:04:53 +0000 (18:04 -0400)
commit35682764a9dc7eb0fed3fbb1c0074f1c34dd60b2
tree4f0152ff992851b056d4fdac88f1338a8f85590f
parent35e9281ef8ac394b7d718cf6bd65bdc2ff8047b0
test557: fix ubsan runtime error due to int left shift

- Test curl_msnprintf negative int width arg using INT_MIN instead of
  1 << 31 which is undefined behavior.

Closes https://github.com/curl/curl/issues/1516
tests/libtest/lib557.c