Skip to content

array-bounds checks are now fatal #8314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ansi-c/goto-conversion/goto_check_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@
inequality,
name + " lower bound",
"array bounds",
false, // fatal
true, // fatal
expr.find_source_location(),
expr,
guard);
Expand Down Expand Up @@ -1708,7 +1708,7 @@
inequality,
name + " upper bound",
"array bounds",
false, // fatal
true, // fatal
expr.find_source_location(),
expr,
guard);
Expand All @@ -1722,7 +1722,7 @@
inequality,
name + " upper bound",
"array bounds",
false, // fatal
true, // fatal

Check warning on line 1725 in src/ansi-c/goto-conversion/goto_check_c.cpp

View check run for this annotation

Codecov / codecov/patch

src/ansi-c/goto-conversion/goto_check_c.cpp#L1725

Added line #L1725 was not covered by tests
expr.find_source_location(),
expr,
guard);
Expand Down
Loading