diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2018-09-26 10:26:53 -0700 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2018-09-26 14:54:45 -0700 |
commit | 8f37734cf48c2ff15e8654cfa26fa4baa195d348 (patch) | |
tree | 93714e00f737a56b3ff190ed54757e26e828da6b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 31830456cdb94cbe2a50debf5eaee5cd54dd7d3c (diff) |
Change FileStream test buffer from char* void*
It seems like GoogleTest prints string parameters before checking them.
This can be a problem in FileStream tests since these buffers are not
null terminated. ASan reports heap-buffer-overflow.
Test: m SANITIZE_HOST=address
out/soong/.intermediates/frameworks/base/tools/aapt2/aapt2_tests/linux_glibc_x86_64_asan/aapt2_tests \
LD_LIBRARY_PATH=out/soong/.intermediates/external/libcxx/libc++/linux_glibc_x86_64_shared
out/soong/.intermediates/frameworks/base/tools/aapt2/aapt2_tests/linux_glibc_x86_64_asan/aapt2_tests
Change-Id: I9a1956d815729de23c7038fb0d498240eb917070
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions