mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
malloc: Assure that THP mode is always null terminated
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user