summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-20 11:34:46 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-20 11:34:46 +0200
commitd59dc5fbf2b36d841db35b8d3816d4da92a568a2 (patch)
tree23bf303bfef12862bb83465dc8b8a94974113a6c
parent6263d0350bb9d490af2a4cc71e14fe13c3199af0 (diff)
srfi-14: Fix possible buffer overrun in '%char-set-dump'.
* libguile/srfi-14.c (scm_sys_char_set_dump): Change array size from 9 to 11 as suggested by GCC 9.1.0.
-rw-r--r--libguile/srfi-14.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/srfi-14.c b/libguile/srfi-14.c
index a4d71e8eb..52d5a40ee 100644
--- a/libguile/srfi-14.c
+++ b/libguile/srfi-14.c
@@ -2038,7 +2038,7 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset),
SCM ranges = SCM_EOL, elt;
size_t i;
scm_t_char_set *cs;
- char codepoint_string_lo[9], codepoint_string_hi[9];
+ char codepoint_string_lo[11], codepoint_string_hi[11];
SCM_VALIDATE_SMOB (1, charset, charset);
cs = SCM_CHARSET_DATA (charset);