mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
* iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
This commit is contained in:
parent
a4b33f0368
commit
282c98b03c
@ -129,7 +129,7 @@ extern struct gconv_module *__gconv_modules_db;
|
|||||||
char *result; \
|
char *result; \
|
||||||
char *tmp; \
|
char *tmp; \
|
||||||
size_t cnt = 0; \
|
size_t cnt = 0; \
|
||||||
size_t suffix_len = suffix == NULL ? 0 : strlen (suffix); \
|
size_t suffix_len = (suffix) == NULL ? 0 : strlen (suffix); \
|
||||||
\
|
\
|
||||||
while (*cp != '\0') \
|
while (*cp != '\0') \
|
||||||
if (*cp++ == '/') \
|
if (*cp++ == '/') \
|
||||||
|
Loading…
Reference in New Issue
Block a user