summaryrefslogtreecommitdiffstats
path: root/src/sanity.h
Commit message (Collapse)AuthorAgeFilesLines
* sanity: Don't mark memory uninit in sanitize_{alloc,free}()Tavian Barnes2024-11-021-7/+7
| | | | | We might want to change the size of an allocated region without changing which bytes are initialized.
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-2/+0
| | | | | | This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-0/+1
|
* prelude: Define __SANITIZE_*__Tavian Barnes2024-08-281-15/+3
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* sanity: Don't use self-init for uninit()Tavian Barnes2024-02-121-2/+2
| | | | | | | | | | | Self-initialization like bool ret = ret; is a GCC trick to suppress uninitialized variable warnings, but it's not actually well-defined, and will trip a recent enough MemorySanitizer: src/eval.c:1088:13: runtime error: load of value 128, which is not a valid value for type 'bool'
* sanity: Suppress unused variable warnings with sanitizers offTavian Barnes2023-06-201-2/+7
|
* sanity: Make sanitize_[un]init() always a void expressionTavian Barnes2023-06-141-2/+2
|
* sanity: Add wrappers for sanitizer interfacesTavian Barnes2023-05-251-0/+89