hivex_value_multiple_strings: Don't read uninitialized data.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Apr 2011 13:01:03 +0000 (14:01 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Apr 2011 13:04:49 +0000 (14:04 +0100)
commit53056244696385299fe0d298bd25053dd7c07dc0
tree0de1b8c326869a5157468e6463d76072f6ba8015
parent75ea457771cec140fa3376bcc299948096c07acd
hivex_value_multiple_strings: Don't read uninitialized data.

If hivex_value_multiple_strings was given a value which had an odd
length or if the data in the value was unterminated,
hivex_value_multiple_strings could read uninitialized data.

Potentially (although very unlikely) this could cause a
non-exploitable segfault in the calling program.
lib/hivex.c