Handle odd-length "UTF16" strings.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Apr 2011 13:03:21 +0000 (14:03 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Apr 2011 13:04:49 +0000 (14:04 +0100)
commit75ea457771cec140fa3376bcc299948096c07acd
tree3dd2a51a8b77f0b586b040d724338872a840b782
parentc22ed5a6cb58aff70bf74df5b7c1edd33d796ef4
Handle odd-length "UTF16" strings.

If the length of the buffer is not even, then this would read a byte
of uninitialized data.  Fix the length check to avoid this.
lib/hivex.c