CI memory safety tests
This commit is contained in:
parent
cdae3b3ac9
commit
4df3687045
5 changed files with 398 additions and 3 deletions
25
sanitizers/ubsan.supp
Normal file
25
sanitizers/ubsan.supp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# McRogueFace UndefinedBehaviorSanitizer Suppression File
|
||||
#
|
||||
# CPython uses function pointer casts extensively (PyCFunction signatures
|
||||
# don't match the actual function types). These are "safe" in practice
|
||||
# on all ABIs CPython targets, but UBSan flags them.
|
||||
#
|
||||
# The primary defense is -fno-sanitize=function,vptr in compile flags.
|
||||
# This file is a backup for any that slip through.
|
||||
#
|
||||
# Usage:
|
||||
# UBSAN_OPTIONS="suppressions=sanitizers/ubsan.supp"
|
||||
#
|
||||
# Format: type:source_pattern
|
||||
|
||||
# CPython function pointer cast patterns
|
||||
function:modules/cpython/*
|
||||
function:deps/cpython/*
|
||||
|
||||
# CPython object header type punning (PyObject* -> specific types)
|
||||
alignment:modules/cpython/*
|
||||
alignment:deps/cpython/*
|
||||
|
||||
# libtcod internal casts (C library with void* patterns)
|
||||
function:*libtcod*
|
||||
function:*tcod*
|
||||
Loading…
Add table
Add a link
Reference in a new issue