aboutsummaryrefslogtreecommitdiff
path: root/tests/asan_reserve_constant.s
Commit message (Collapse)AuthorAgeFilesLines
* Allow constants in asan:reserve statementsMiquel Sabaté Solà2025-12-151-0/+20
This way, if you define a constant like: MY_BUFFER_LEN_IN_BYTES = $10 You can then declare your buffer like so: zp_buffer = $00 ; asan:reserve MY_BUFFER_LEN_IN_BYTES And then further in the code you can rely on just using the constant for bound checking, and then the address sanitizer will check on bound checks via static analysis as well. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>