aboutsummaryrefslogtreecommitdiff
path: root/asan.supp
blob: e784c3fb821d55004020812ac13d255397c18406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# AddressSanitizer options for Zen
#
# IMPORTANT: There is no native "options from file" mechanism for ASAN on any
# platform or compiler. The sanitizer.options rule in xmake.lua parses this
# file and sets ASAN_OPTIONS directly. If you run a binary without xmake you
# must set ASAN_OPTIONS manually, e.g.:
#   Linux/Mac:  ASAN_OPTIONS="new_delete_type_mismatch=0" ./zenserver
#   Windows:    set ASAN_OPTIONS=new_delete_type_mismatch=0
#
# Format:
#   key=value   ASAN runtime option
#   #           comment line (the whole line must start with #)
#   <blank>     ignored

# EASTL's allocator stores a size_t header in every allocation, but the
# deallocation path passes the element size without the header. ASAN reports
# this as a new/delete type mismatch. This is a false positive.
new_delete_type_mismatch=0