mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Fix signedness warning
This is the updated version using uintptr_t as Alan Modra suggested. 2014-11-18 Jan-Benedict Glaw <jbglaw@lug-owl.de> * dwarf.c (process_extended_line_op): Fix signedness warning.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2014-11-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
|
||||||
|
|
||||||
|
* dwarf.c (process_extended_line_op): Fix signedness warning.
|
||||||
|
|
||||||
2014-11-18 Nick Clifton <nickc@redhat.com>
|
2014-11-18 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutuls/17605
|
PR binutuls/17605
|
||||||
|
@ -416,7 +416,7 @@ process_extended_line_op (unsigned char * data,
|
|||||||
len = read_uleb128 (data, & bytes_read, end);
|
len = read_uleb128 (data, & bytes_read, end);
|
||||||
data += bytes_read;
|
data += bytes_read;
|
||||||
|
|
||||||
if (len == 0 || data == end || len > (end - data))
|
if (len == 0 || data == end || len > (uintptr_t) (end - data))
|
||||||
{
|
{
|
||||||
warn (_("Badly formed extended line op encountered!\n"));
|
warn (_("Badly formed extended line op encountered!\n"));
|
||||||
return bytes_read;
|
return bytes_read;
|
||||||
|
Reference in New Issue
Block a user