Home
last modified time | relevance | path

Searched refs:small_buffer (Results 1 – 7 of 7) sorted by relevance

/external/autotest/client/site_tests/platform_ToolchainTests/src/
Dclang-fortify-tests.cpp116 char small_buffer[8] = {}; in TestString() local
119 char large_buffer[sizeof(small_buffer) + 1] = {}; in TestString()
121 EXPECT_DEATH(memcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
123 EXPECT_DEATH(memmove(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
125 EXPECT_DEATH(mempcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
127 EXPECT_DEATH(memset(small_buffer, 0, sizeof(large_buffer))); in TestString()
129 memset(small_buffer, sizeof(small_buffer), 0); in TestString()
131 EXPECT_DEATH(bcopy(large_buffer, small_buffer, sizeof(large_buffer))); in TestString()
133 EXPECT_DEATH(bzero(small_buffer, sizeof(large_buffer))); in TestString()
138 _Static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in TestString()
[all …]
/external/python/cpython3/Objects/
Dbytesobject.c3215 memset(writer, 0, offsetof(_PyBytesWriter, small_buffer)); in _PyBytesWriter_Init()
3217 memset(writer->small_buffer, 0xCB, sizeof(writer->small_buffer)); in _PyBytesWriter_Init()
3232 return writer->small_buffer; in _PyBytesWriter_AsString()
3339 writer->small_buffer, in _PyBytesWriter_Resize()
3345 memset(writer->small_buffer, 0xDB, sizeof(writer->small_buffer)); in _PyBytesWriter_Resize()
3398 writer->allocated = sizeof(writer->small_buffer) - 1; in _PyBytesWriter_Alloc()
3412 writer->small_buffer[writer->allocated] = 0; in _PyBytesWriter_Alloc()
3414 writer->allocated = sizeof(writer->small_buffer); in _PyBytesWriter_Alloc()
3416 return _PyBytesWriter_Prepare(writer, writer->small_buffer, size); in _PyBytesWriter_Alloc()
3435 result = PyByteArray_FromStringAndSize(writer->small_buffer, size); in _PyBytesWriter_Finish()
[all …]
/external/python/cpython2/Objects/
Dbytesobject.c3170 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 …]
Dfileobject.c1686 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/pdfium/fpdfsdk/
Dfpdftext_embeddertest.cpp77 unsigned short small_buffer[12]; in TEST_F() local
79 EXPECT_EQ(6, FPDFText_GetText(textpage, 0, 5, small_buffer)); in TEST_F()
80 EXPECT_TRUE(check_unsigned_shorts(small_expected, small_buffer, in TEST_F()
/external/python/cpython3/Include/
Dbytesobject.h164 char small_buffer[512]; member
/external/python/cpython2/Modules/
Dbz2module.c652 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()