platform_system_core/libutils/tests
Branislav Rankov bf3fff1a9e libutils: Fix bug in strstr16.
In the original code when target is an empty string
strlen16() would start reading the memory until a
"terminating null" (that is, zero) character is found.
This may happen because "*target++", at line 300,
would increment the pointer beyond the actual string.

Signed-off-by: Branislav Rankov <branislav.rankov@arm.com>
Signed-off-by: Tamas Petz <tamas.petz@arm.com>
Test: libutils_tests --gtest_filter=UnicodeTest.strstr16*
Change-Id: I213ffe061057c7fa8f34b68881e106a709557dcd
2017-10-24 10:36:00 -07:00
..
Android.bp Use target.linux for all linux kernel based targets 2017-10-16 20:55:39 -07:00
BitSet_test.cpp system/core Replace cutils/log.h with android/log.h 2016-09-30 12:47:05 -07:00
Looper_test.cpp Merge \"Fix google-explicit-constructor warnings in system/core.\" 2016-07-29 17:01:17 +00:00
LruCache_test.cpp system/core Replace cutils/log.h with android/log.h 2016-09-30 12:47:05 -07:00
Mutex_test.cpp Add thread safety analysis annotations. 2017-07-21 13:25:42 -07:00
README.txt Add test for RefBase etc. 2016-07-13 12:03:03 -07:00
RefBase_test.cpp Make RefBase more robust and debuggable 2016-08-13 11:17:51 -07:00
Singleton_test.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test.h Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test1.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test2.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
String8_test.cpp libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 2016-08-25 20:07:51 +00:00
StrongPointer_test.cpp Fix ODR issue in StrongPointer_test.cpp 2017-02-23 21:25:18 -08:00
SystemClock_test.cpp SystemClock: add test 2016-05-02 13:59:58 -07:00
TestHelpers.h Fix google-explicit-constructor warnings in system/core. 2016-07-26 11:26:01 -07:00
Unicode_test.cpp libutils: Fix bug in strstr16. 2017-10-24 10:36:00 -07:00
Vector_test.cpp Make __android_log_assert behave more like libc asserts. 2017-02-06 10:54:00 -08:00

README.txt

Run device tests:

mma -j<whatever>
(after adb root; adb disable-verity; adb reboot)
adb root
adb remount
adb sync
adb shell /data/nativetest/libutils_tests/libutils_tests