forked from Imagelibrary/binutils-gdb
gdb/ChangeLog:
* charset.c (convert_between_encodings): Fix unsigned overflow.
gdb/charset.c (convert_between_encodings): Fix unsigned overflow.
This commit is contained in:
@@ -548,7 +548,7 @@ convert_between_encodings (const char *from, const char *to,
|
||||
|
||||
/* Now make sure that the object on the obstack only includes
|
||||
bytes we have converted. */
|
||||
obstack_blank_fast (output, -outleft);
|
||||
obstack_blank_fast (output, -(ssize_t) outleft);
|
||||
|
||||
if (r == (size_t) -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user