mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
malloc: Assure that THP mode is always null terminated
This commit is contained in:
parent
decf02d382
commit
801deb07f6
@ -61,6 +61,7 @@ __malloc_thp_mode (void)
|
||||
|
||||
char str[sizeof(mode_always)];
|
||||
ssize_t s = __read_nocancel (fd, str, sizeof (str));
|
||||
str[s] = '\0';
|
||||
__close_nocancel (fd);
|
||||
|
||||
if (s == sizeof (mode_always) - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user