mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 00:57:19 +03:00
Fix test config of lg_san_uaf_align.
The option may be configure-disabled, which resulted in the invalid options output from the tests.
This commit is contained in:
parent
eabe889162
commit
d660683d3d
5 changed files with 17 additions and 5 deletions
|
|
@ -1,9 +1,13 @@
|
|||
#include "test/jemalloc_test.h"
|
||||
#include "test/arena_util.h"
|
||||
#include "test/san.h"
|
||||
|
||||
#include "jemalloc/internal/cache_bin.h"
|
||||
#include "jemalloc/internal/san.h"
|
||||
#include "jemalloc/internal/safety_check.h"
|
||||
|
||||
const char *malloc_conf = TEST_SAN_UAF_ALIGN_ENABLE;
|
||||
|
||||
static size_t san_uaf_align;
|
||||
|
||||
static bool fake_abort_called;
|
||||
|
|
@ -28,7 +32,7 @@ test_write_after_free_post(void) {
|
|||
|
||||
static bool
|
||||
uaf_detection_enabled(void) {
|
||||
if (!config_uaf_detection) {
|
||||
if (!config_uaf_detection || !san_uaf_detection_enabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue