]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix signed overflow check in k5_ucs2s_to_utf8s
authorGreg Hudson <ghudson@mit.edu>
Thu, 20 Dec 2012 19:20:37 +0000 (14:20 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Dec 2012 19:28:32 +0000 (14:28 -0500)
commit7506becc0ac70915050e097d673e7647b99347fc
treea1b51a8de6b305d2182083334a5eb29bef8dddfb
parent41b35299cbfa6a47e93f56344cd2e52dd4418ce6
Fix signed overflow check in k5_ucs2s_to_utf8s

Signed overflow must be checked before it happens, since modern
versions of gcc will optimize out checks of the result.  Reported by
Nickolai Zeldovich <nickolai@csail.mit.edu>.

ticket: 7511
src/util/support/utf8_conv.c