Home
last modified time | relevance | path

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

/PHP-8.1/ext/fileinfo/libmagic/
H A Dmagic.c202 #define SLOP (1 + sizeof(union VALUETYPE)) in file_or_stream() macro
203 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
247 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream()
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch2732 #define SLOP (1 + sizeof(union VALUETYPE))
2733 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2734 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2843 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */

Completed in 14 milliseconds