OSDN Git Service

Add new tests for memory/string routines.
authorChristopher Ferris <cferris@google.com>
Thu, 7 Nov 2013 01:32:11 +0000 (17:32 -0800)
committerChristopher Ferris <cferris@google.com>
Fri, 15 Nov 2013 18:36:21 +0000 (10:36 -0800)
commitb687ad3c3491fffe22507cafc9347e10cbf6bd31
treed854ac3533adc7268002f2ad299f4a6a9140b464
parent05ec00bf62ac168c9787a3d0640879ab3e502fe5
Add new tests for memory/string routines.

Create a few generic testing functions to allow any memory/string tests
to be created.

Add alignment tests for memcpy/memset/strcat/strcpy/strlen.

Add an overread test for memcpy/strcat/strcpy/strlen. This test attempts
to verify that the functions do not read past the end of their buffers
(src buffer in the case of src/dst functions).

Bug: 9797008

Change-Id: Ib3223ca1b99e729ae8229adc2d03f4dc3103d97c
tests/Android.mk
tests/buffer_tests.cpp [new file with mode: 0644]
tests/buffer_tests.h [new file with mode: 0644]
tests/string_test.cpp