Home
last modified time | relevance | path

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

/PHP-8.2/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.2/ext/fileinfo/
H A Dlibmagic.patch2759 #define SLOP (1 + sizeof(union VALUETYPE))
2760 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2761 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2870 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */

Completed in 16 milliseconds