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/image-header.c | |
| parent | d3a8b2d3c636a024e17ff29b0f75d0a3cee8144e (diff) | |
image-header.c (__libdw_image_header): Fix tranposed comparison.
Diffstat (limited to 'libdwfl/image-header.c')
| -rw-r--r-- | libdwfl/image-header.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
