Home
last modified time | relevance | path

Searched refs:SLOP (Results 1 – 2 of 2) sorted by relevance

/PHP-7.2/ext/fileinfo/libmagic/
H A Dmagic.c234 #define SLOP (1 + sizeof(union VALUETYPE)) in file_or_stream() macro
235 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
274 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream()
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch2664 #define SLOP (1 + sizeof(union VALUETYPE))
2665 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2666 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2780 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */

Completed in 11 milliseconds