1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

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.
This commit is contained in:
Ludovic Courtès 2019-06-20 11:34:46 +02:00
parent 6263d0350b
commit d59dc5fbf2

View file

@ -2038,7 +2038,7 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset),
SCM ranges = SCM_EOL, elt; SCM ranges = SCM_EOL, elt;
size_t i; size_t i;
scm_t_char_set *cs; 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); SCM_VALIDATE_SMOB (1, charset, charset);
cs = SCM_CHARSET_DATA (charset); cs = SCM_CHARSET_DATA (charset);