Searched refs:small_buffer (Results 1 – 7 of 7) sorted by relevance
/external/autotest/client/site_tests/platform_ToolchainTests/src/ |
D | clang-fortify-tests.cpp | 117 char small_buffer[8] = {}; in TestString() local 120 char large_buffer[sizeof(small_buffer) + 1] = {}; in TestString() 122 EXPECT_DEATH(memcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString() 124 EXPECT_DEATH(memmove(small_buffer, large_buffer, sizeof(large_buffer))); in TestString() 126 EXPECT_DEATH(mempcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString() 128 EXPECT_DEATH(memset(small_buffer, 0, sizeof(large_buffer))); in TestString() 130 memset(small_buffer, sizeof(small_buffer), 0); in TestString() 132 EXPECT_DEATH(bcopy(large_buffer, small_buffer, sizeof(large_buffer))); in TestString() 134 EXPECT_DEATH(bzero(small_buffer, sizeof(large_buffer))); in TestString() 139 _Static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in TestString() [all …]
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 3224 memset(writer, 0, offsetof(_PyBytesWriter, small_buffer)); in _PyBytesWriter_Init() 3226 memset(writer->small_buffer, PYMEM_CLEANBYTE, in _PyBytesWriter_Init() 3227 sizeof(writer->small_buffer)); in _PyBytesWriter_Init() 3242 return writer->small_buffer; in _PyBytesWriter_AsString() 3350 writer->small_buffer, in _PyBytesWriter_Resize() 3356 memset(writer->small_buffer, PYMEM_CLEANBYTE, in _PyBytesWriter_Resize() 3357 sizeof(writer->small_buffer)); in _PyBytesWriter_Resize() 3410 writer->allocated = sizeof(writer->small_buffer) - 1; in _PyBytesWriter_Alloc() 3424 writer->small_buffer[writer->allocated] = 0; in _PyBytesWriter_Alloc() 3426 writer->allocated = sizeof(writer->small_buffer); in _PyBytesWriter_Alloc() [all …]
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 3170 memset(writer, 0, offsetof(_PyBytesWriter, small_buffer)); in _PyBytesWriter_Init() 3172 memset(writer->small_buffer, 0xCB, sizeof(writer->small_buffer)); in _PyBytesWriter_Init() 3187 return writer->small_buffer; in _PyBytesWriter_AsString() 3294 writer->small_buffer, in _PyBytesWriter_Resize() 3300 memset(writer->small_buffer, 0xDB, sizeof(writer->small_buffer)); in _PyBytesWriter_Resize() 3353 writer->allocated = sizeof(writer->small_buffer) - 1; in _PyBytesWriter_Alloc() 3367 writer->small_buffer[writer->allocated] = 0; in _PyBytesWriter_Alloc() 3369 writer->allocated = sizeof(writer->small_buffer); in _PyBytesWriter_Alloc() 3371 return _PyBytesWriter_Prepare(writer, writer->small_buffer, size); in _PyBytesWriter_Alloc() 3390 result = PyByteArray_FromStringAndSize(writer->small_buffer, size); in _PyBytesWriter_Finish() [all …]
|
D | fileobject.c | 1686 char small_buffer[SMALLCHUNK]; in file_readlines() local 1687 char *buffer = small_buffer; in file_readlines() 1755 memcpy(buffer, small_buffer, nfilled); in file_readlines()
|
/external/python/cpython3/Include/ |
D | bytesobject.h | 164 char small_buffer[512]; member
|
/external/python/cpython2/Modules/ |
D | bz2module.c | 652 char small_buffer[SMALLCHUNK]; in BZ2File_readlines() local 653 char *buffer = small_buffer; in BZ2File_readlines() 731 memcpy(buffer, small_buffer, nfilled); in BZ2File_readlines() 1017 char small_buffer[SMALLCHUNK]; in BZ2File_seek() local 1018 char *buffer = small_buffer; in BZ2File_seek()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_text_embeddertest.cpp | 85 unsigned short small_buffer[12]; in TEST_F() local 87 EXPECT_EQ(6, FPDFText_GetText(textpage, 0, 5, small_buffer)); in TEST_F() 88 EXPECT_TRUE(check_unsigned_shorts(kSmallExpected, small_buffer, in TEST_F()
|