X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=hivex%2Fhivex.c;h=53e63517567a17c2e5c78e1ca4efbf8c0cb59d48;hb=ae544b078e22114978918310cb1b68820f673225;hp=7efea9a611ed248302bd034a557b457853396f5f;hpb=2332db552d1dfec9e14acb50fe2e9f38f71ec802;p=hivex.git diff --git a/hivex/hivex.c b/hivex/hivex.c index 7efea9a..53e6351 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -763,7 +763,7 @@ get_children (hive_h *h, hive_node_h node, size_t i; for (i = 0; i < nr_subkeys_in_lf; ++i) { - hive_node_h subkey = lf->keys[i].offset; + hive_node_h subkey = le32toh (lf->keys[i].offset); subkey += 0x1000; if (!IS_VALID_BLOCK (h, subkey)) { if (h->msglvl >= 2) @@ -841,7 +841,7 @@ get_children (hive_h *h, hive_node_h node, size_t j; for (j = 0; j < le16toh (lf->nr_keys); ++j) { - hive_node_h subkey = lf->keys[j].offset; + hive_node_h subkey = le32toh (lf->keys[j].offset); subkey += 0x1000; if (!IS_VALID_BLOCK (h, subkey)) { if (h->msglvl >= 2) @@ -1174,7 +1174,7 @@ hivex_value_value (hive_h *h, hive_value_h value, return ret; } - size_t data_offset = vk->data_offset; + size_t data_offset = le32toh (vk->data_offset); data_offset += 0x1000; if (!IS_VALID_BLOCK (h, data_offset)) { if (h->msglvl >= 2)