]> git.proxmox.com Git - mirror_frr.git/commit
lib: disable ASAN redzone around xref_p/xref_array
authorDavid Lamparter <equinox@diac24.net>
Thu, 15 Apr 2021 04:26:45 +0000 (06:26 +0200)
committerDavid Lamparter <equinox@diac24.net>
Thu, 15 Apr 2021 04:27:34 +0000 (06:27 +0200)
commit1b958b2ef862cd6ccc000270abd7d5cec314cd04
treee37633da6b2a225e6a3b4c613440893436f05ca4
parent5bb91468c55c17405d112ffe91ba01594583c2e6
lib: disable ASAN redzone around xref_p/xref_array

The "xref_p" variables are placed in the "xref_array" section
specifically so they're next to each other and we get an array at the
end.  The ASAN redzone that is inserted around global variables is
breaks that since it'd be inserted before and after each of the array
items.  So disable the ASAN redzone for these variables (and only these
variables, nothing else should be affected.)

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/xref.h