Skip to content

Commit 5fe342c

Browse files
committed
Revert code that fails with ASAN
1 parent 951e57d commit 5fe342c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

ext/rbs_extension/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,6 @@ void Init_rbs_extension(void) {
466466
#ifdef HAVE_RB_EXT_RACTOR_SAFE
467467
rb_ext_ractor_safe(true);
468468
#endif
469-
// ASAN test: intentional heap buffer overflow to verify ASAN is working
470-
volatile char *test_ptr = malloc(10);
471-
test_ptr[10] = 'A'; // Out of bounds write - this will be caught by ASAN
472-
473469
rbs__init_constants();
474470
rbs__init_location();
475471
rbs__init_parser();

0 commit comments

Comments
 (0)