Home | History | Annotate | Download | only in Python

Lines Matching defs:buffer

5    it because platforms differ in what vsnprintf does in case the buffer
7 would have been written had the buffer not been too small, and to set
8 the last byte of the buffer to \0. At least MS _vsnprintf returns a
9 negative value instead, and fills the entire buffer with non-\0 data.
16 If the platform doesn't have vsnprintf, and the buffer size needed to
26 When rv >= size, output conversion was truncated, and a buffer of
33 with a non-C99 vsnprintf simply that the buffer wasn't big enough
35 PyMem_Malloc couldn't obtain space for a temp buffer.
60 char *buffer;
67 * vsnprintf return value or the buffer malloc size. */
77 buffer = PyMem_MALLOC(size + _PyOS_vsnprintf_EXTRA_SPACE);
78 if (buffer == NULL) {
83 len = vsprintf(buffer, format, va);
88 Py_FatalError("Buffer overflow in PyOS_snprintf/PyOS_vsnprintf");
94 memcpy(str, buffer, to_copy);
97 PyMem_FREE(buffer);