gdb/ChangeLog:

* charset.c (convert_between_encodings): Fix unsigned overflow.

    gdb/charset.c (convert_between_encodings): Fix unsigned overflow.
This commit is contained in:
Paul Koning
2018-10-17 19:26:55 -04:00
parent 6f3b1098e8
commit 89eb3c5470
2 changed files with 5 additions and 1 deletions

View File

@@ -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)
{