Skip to content

Commit d19fb6a

Browse files
committed
Pointer subtraction was fixed in 3acdb52
The invariant failure was caused by a bug in handling pointer subtraction, which was fixed in 3acdb52. The test also wrongly assumed verification would succeed, which is not correct for `*p`, which is out of bounds. Fixes: #5328
1 parent b233b7e commit d19fb6a

File tree

1 file changed

+6
-4
lines changed
  • regression/cbmc-primitives/r_w_ok_bug

1 file changed

+6
-4
lines changed

regression/cbmc-primitives/r_w_ok_bug/test.desc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
KNOWNBUG
1+
CORE
22
main.c
33
--pointer-check --no-simplify --no-propagation
4-
^EXIT=0$
4+
^\[main.pointer_dereference.\d+\] line 8 dereference failure: pointer outside dynamic object bounds in \*p: FAILURE$
5+
^\[main.pointer_dereference.\d+\] line 8 dereference failure: pointer outside object bounds in \*p: FAILURE$
6+
^\*\* 2 of \d+ failed
7+
^VERIFICATION FAILED$
8+
^EXIT=10$
59
^SIGNAL=0$
610
--
711
^warning: ignoring
8-
--
9-
Crashes during the flattening, issue #5328

0 commit comments

Comments
 (0)