[Libguestfs] [PATCH 0/2] hivex: handle corrupted hives better

Dawid Zamirski dzamirski at datto.com
Wed Feb 8 21:36:29 UTC 2017


Hello,

The following patches address issues when dealing with hives that have
corrupted data in them but are otherwise readable/writable. Those were
found on some rather rare Windows installations that seem to work fine
but current hivex fails to even open.

Those patches change hivex to simply log and ignore such "corrupted"
regions instead of aborting because the caller might be looking at keys
that are perfectly readable/writable (e.g. to identify Windows version
from HKLM/Software/Microsoft/Windows NT/CurrentVersion) and other
"corrupted" and irrelevant keys might prevent one from doing so.

Regards,
Dawid

Dawid Zamirski (2):
  lib: change how hbin sections are read.
  lib: allow to walk registry with corrupted blocks

 lib/handle.c | 52 +++++++++++++++++++++++++++++++++++++++++++---------
 lib/node.c   | 11 +++++------
 2 files changed, 48 insertions(+), 15 deletions(-)

-- 
2.9.3




More information about the Libguestfs mailing list