We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e5f2a6 commit 951e57dCopy full SHA for 951e57d
ext/rbs_extension/main.c
@@ -466,6 +466,10 @@ void Init_rbs_extension(void) {
466
#ifdef HAVE_RB_EXT_RACTOR_SAFE
467
rb_ext_ractor_safe(true);
468
#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
+
473
rbs__init_constants();
474
rbs__init_location();
475
rbs__init_parser();
0 commit comments