Share

gputils

Tracker: Bugs

5 gpreadhex doesn't handle inhx32 properly - ID: 2880825
Last Update: Comment added ( jimatjtan )

The segment field in inhx32 is big-endian but gpreadhex reads it as
little-endian.
(gpwritehex does the right thing when creating a file.)
Patch attached.


Jim Paris ( jimatjtan ) - 2009-10-17 00:05

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-10-17 00:06
Sender: jimatjtan

Index: gpreadhex.c
===================================================================
--- gpreadhex.c (revision 569)
+++ gpreadhex.c (working copy)
@@ -136,7 +136,7 @@
}

/* inhx32 segment line*/
- page = readword() << 15;
+ page = swapword(readword()) << 15;
info->hex_format = inhx32;

} else {



Log in to comment.

Attached File ( 1 )

Filename Description Download
patch gpreadhex patch against svn 569 Download

Change ( 1 )

Field Old Value Date By
File Added 346985: patch 2009-10-17 00:05 jimatjtan