Skip to contentSkip to conversation

ftdump missing be32_to_cpu() on size cell.

dtc Applied Ed Swarthout 2 participants 2 messages Mar 14, 2007 – Mar 22, 2007

lore
Share & tools
lore
#0 lore raw
---
 ftdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ftdump.c +1 -1
index 67c5228..55209b6 100644
@@ -142,7 +142,7 @@ static void dump_blob(void *blob)
 			fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag);
 			break;
 		}
-		sz = GET_CELL(p);
+		sz = be32_to_cpu(GET_CELL(p));
 		s = p_strings + be32_to_cpu(GET_CELL(p));
 		if (version < 16 && sz >= 8)
 			p = PALIGN(p, 8);
Signature · 1 line
1.5.0.3.290.gc390a
Applied
#1 lore raw

So, like, the other day Ed Swarthout mumbled:

Quoted 3 lines
---
 ftdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied.

Thanks,
jdl