Skip to content

Commit 65014f9

Browse files
committed
Keep _FORTIFY_SOURCE=2 for libvulkan when enabling _FORTIFY_SOURCE=3 globally
malloc_usable_size() is not allowed when _FORTIFY_SOURCE=3, so we keep it 2 as a workaround. Bug: b/291762537 Test: mm and presubmit Change-Id: I2eb79bb9673aacfd36b0835edbf821059319189f
1 parent 3987d12 commit 65014f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vulkan/libvulkan/Android.bp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ cc_library_shared {
5959
"-fstandalone-debug",
6060

6161
//"-DLOG_NDEBUG=0",
62+
63+
// Keep -D_FORTIFY_SOURCE=2 in libvulkan.
64+
// See b/291762537
65+
"-U_FORTIFY_SOURCE",
66+
"-D_FORTIFY_SOURCE=2",
6267
],
6368

6469
cppflags: [

0 commit comments

Comments
 (0)