mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fix BZ #16734 -- fopen calls mmap to allocate its buffer
This commit is contained in:
@ -125,7 +125,9 @@ _IO_file_doallocate (fp)
|
||||
size = st.st_blksize;
|
||||
#endif
|
||||
}
|
||||
ALLOC_BUF (p, size, EOF);
|
||||
p = malloc (size);
|
||||
if (__glibc_unlikely (p == NULL))
|
||||
return EOF;
|
||||
_IO_setb (fp, p, p + size, 1);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user