Home
last modified time | relevance | path

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

/php-src/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-src/ext/fileinfo/
H A Dlibmagic.patch2561 #define SLOP (1 + sizeof(union VALUETYPE))
2562 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2563 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2670 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */

Completed in 14 milliseconds