hivex: Don't die on valid registries which have bad declared data lengths.
authorRichard Jones <rjones@redhat.com>
Thu, 4 Feb 2010 13:26:04 +0000 (13:26 +0000)
committerRichard Jones <rjones@redhat.com>
Thu, 4 Feb 2010 13:28:26 +0000 (13:28 +0000)
commit01ba5f80ee02405f2a558e735e32957a710fdd5b
tree36e60227712582e67cad24d73a1ffe252d9d17a6
parent578a5774a3ec00aad31988079eb6aacddcf6643f
hivex: Don't die on valid registries which have bad declared data lengths.

Some apparently valid registries contain value data length
declarations which exceed the allocated block size for the
value.

Previously the code would return EFAULT for such registries.
However since these appear to be otherwise valid registries,
turn this into a warning and just use the allocated block size
as the data length (in other words, truncate the value).
hivex/hivex.c