git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ecb9ef
)
hivex: Some missing le32toh endianness conversions.
author
Richard Jones
<rjones@redhat.com>
Thu, 4 Feb 2010 16:27:58 +0000
(16:27 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 4 Feb 2010 16:27:58 +0000
(16:27 +0000)
hivex/hivex.c
patch
|
blob
|
history
diff --git
a/hivex/hivex.c
b/hivex/hivex.c
index
c8257a3
..
ce3e14c
100644
(file)
--- a/
hivex/hivex.c
+++ b/
hivex/hivex.c
@@
-803,7
+803,7
@@
get_children (hive_h *h, hive_node_h node,
/* Count total number of children. */
size_t i, count = 0;
for (i = 0; i < nr_offsets; ++i) {
/* Count total number of children. */
size_t i, count = 0;
for (i = 0; i < nr_offsets; ++i) {
- hive_node_h offset =
ri->offset[i]
;
+ hive_node_h offset =
le32toh (ri->offset[i])
;
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)
@@
-839,7
+839,7
@@
get_children (hive_h *h, hive_node_h node,
* something reasonable above.
*/
for (i = 0; i < nr_offsets; ++i) {
* something reasonable above.
*/
for (i = 0; i < nr_offsets; ++i) {
- hive_node_h offset =
ri->offset[i]
;
+ hive_node_h offset =
le32toh (ri->offset[i])
;
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)