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>
Fri, 19 Feb 2010 14:47:38 +0000 (14:47 +0000)
commit68c045361e7cce81c704ae76f604c98fe4ded8fe
tree88767f55716fd126d1eecd8e6fe8a6ca1bad5f93
parent175dc781fe471b7d08e8f05be1a2414b7e39ac52
hivex: fail upon integer overflow

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