hivex: fail upon integer overflow
authorJim Meyering <jim@meyering.net>
Tue, 3 Nov 2009 17:55:21 +0000 (18:55 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 4 Nov 2009 11:36:59 +0000 (11:36 +0000)
commitef642eb4e3bb278b5df14fbcf30403e3d30dcef3
tree61d6bdaad035474e8b66fd2e7c20acec262a22e8
parentf95c697a44c321dd1d370620515aa71a71a4ad5b
hivex: fail upon integer overflow

* hivex/hivex.c (windows_utf16_to_utf8): Avoid overflow and a
potential infloop.
hivex/hivex.c