Skip to content

Commit

Permalink
TEMP: test sanitizers
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperi committed Nov 4, 2024
1 parent f4cb1e5 commit cd0c2e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/vere/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,17 @@ c3_i
main(c3_i argc,
c3_c** argv)
{
// test ubsan
c3_i muna = 0x7FFFFFFF;
fprintf(stderr, "muna: %i\n", muna);
muna += 1;
fprintf(stderr, "muna: %i\n", muna);

// test asan
c3_c* hala = c3_malloc(1);
c3_free(hala);
fprintf(stderr, "hala: %s\n", hala);

if ( argc <= 0 ) {
fprintf(stderr, "nice try, fbi\r\n");
exit(1);
Expand Down

0 comments on commit cd0c2e5

Please sign in to comment.