Skip to content

Commit

Permalink
mubsan: commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
xyve7 committed Sep 24, 2023
1 parent c0fc0a7 commit 41f5028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ int mubsan_log(const char* format, ...) {

int main() {
int arr[4] = {1, 2, 3, 4};
arr[4] = 10;
arr[4] = 10; // This is undefined behavior, since it's accessing out of bounds. UBSAN should be triggered.
}

0 comments on commit 41f5028

Please sign in to comment.