diff options
| author | Roland McGrath <[email protected]> | 2009-09-04 03:05:31 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2009-09-04 03:05:31 -0700 |
| commit | de6730c718ea803bba51e699752245094bf674a0 (patch) | |
| tree | 85801930954566e0665f1282f75db80c30f4c559 /libdwfl | |
| parent | d3a8b2d3c636a024e17ff29b0f75d0a3cee8144e (diff) | |
image-header.c (__libdw_image_header): Fix tranposed comparison.
Diffstat (limited to 'libdwfl')
| -rw-r--r-- | libdwfl/ChangeLog | 4 | ||||
| -rw-r--r-- | libdwfl/image-header.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 39ae70d4..5b876d33 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2009-09-04 Roland McGrath <[email protected]> + + * image-header.c (__libdw_image_header): Fix tranposed comparison. + 2009-08-27 Roland McGrath <[email protected]> * image-header.c: New file. diff --git a/libdwfl/image-header.c b/libdwfl/image-header.c index 054fba71..6341fc8c 100644 --- a/libdwfl/image-header.c +++ b/libdwfl/image-header.c @@ -112,7 +112,7 @@ __libdw_image_header (int fd, off64_t *start_offset, offset += ((*(uint8_t *) (header + H_SETUP_SECTS) ?: 4) + 1) * 512; if (offset > H_END && offset < mapped_size - && mapped_size - length >= offset) + && mapped_size - offset >= length) { /* It looks kosher. Use it! */ *start_offset += offset; |
