aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorPaul Koning <paul_koning@dell.com>2018-10-17 19:26:55 -0400
committerPaul Koning <paul_koning@dell.com>2018-10-17 19:26:55 -0400
commit89eb3c547018af6a41ce9b3614cc2ab9a679168b (patch)
treec6e73f0c92c109b3a7d623cc039f141321bdec1c /gdb/charset.c
parent6f3b1098e820cef84709ef71c287c4b72e6c671b (diff)
downloadgdb-89eb3c547018af6a41ce9b3614cc2ab9a679168b.zip
gdb-89eb3c547018af6a41ce9b3614cc2ab9a679168b.tar.gz
gdb-89eb3c547018af6a41ce9b3614cc2ab9a679168b.tar.bz2
gdb/ChangeLog:
* charset.c (convert_between_encodings): Fix unsigned overflow. gdb/charset.c (convert_between_encodings): Fix unsigned overflow.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/charset.c b/gdb/charset.c
index 8bb2b4d..64757ab 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -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)
{