Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dmagic.c211 #define SLOP (1 + sizeof(union VALUETYPE)) in file_or_stream() macro
212 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
256 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch2515 #define SLOP (1 + sizeof(union VALUETYPE))
2516 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2517 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2624 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */

Completed in 14 milliseconds