diff options
| author | Roland McGrath <[email protected]> | 2008-02-29 10:17:16 +0000 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2008-02-29 10:17:16 +0000 |
| commit | 47c5c35de6bc548dff7577e3dae38d183b719232 (patch) | |
| tree | 394cb1742a0980c11e34cecd046ec955f462057a /src/readelf.c | |
| parent | 834de6f38901b6add14b6f5f7dda8550638d98ec (diff) | |
src/
2008-02-29 Roland McGrath <[email protected]>
* readelf.c (print_attributes): Add a cast.
* elflint.c (check_attributes): Likewise.
* unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity
with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition.
(add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise.
Diffstat (limited to 'src/readelf.c')
| -rw-r--r-- | src/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c index 0f0773c8..96b5d436 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -2866,7 +2866,7 @@ print_attributes (Ebl *ebl, const GElf_Ehdr *ehdr) if (MY_ELFDATA != ehdr->e_ident[EI_DATA]) CONVERT (subsection_len); - if (unlikely (p - sub < subsection_len)) + if (unlikely (p - sub < (ptrdiff_t) subsection_len)) break; const unsigned char *r = q + sizeof subsection_len; |
