Searched refs:ALLOC_SECURITY_MARGIN (Results 1 - 1 of 1) sorted by relevance

/freebsd-12-stable/contrib/file/src/
H A Dvasprintf.c123 #define ALLOC_SECURITY_MARGIN 1024 /* big value because some platforms have very big 'G' exponent */ macro
124 #if ALLOC_CHUNK < ALLOC_SECURITY_MARGIN
125 # error !!! ALLOC_CHUNK < ALLOC_SECURITY_MARGIN !!!
127 /* note: to have some interest, ALLOC_CHUNK should be much greater than ALLOC_SECURITY_MARGIN */
155 if (len + ALLOC_SECURITY_MARGIN + s->real_len > s->buffer_len) {

Completed in 48 milliseconds