From 89eb3c547018af6a41ce9b3614cc2ab9a679168b Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Wed, 17 Oct 2018 19:26:55 -0400 Subject: gdb/ChangeLog: * charset.c (convert_between_encodings): Fix unsigned overflow. gdb/charset.c (convert_between_encodings): Fix unsigned overflow. --- gdb/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/charset.c') 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) { -- cgit v1.1