Commit c47e940
committed
Piped process: fix off-by-one error
The NULL terminator previously was an out-of-bounds write. This fixes
the test failure seen in
https://github.com/diffblue/cbmc/actions/runs/5112785459/jobs/9191230589?pr=7395,
which was locally reproducible. Out-of-bounds write found by `valgrind`
via
```
regression/cbmc/dynamic_sizeof1$ valgrind \
../../../build-coverage/bin/cbmc main.c \
--incremental-smt2-solver 'z3 --smt2 -in'
```1 parent d5e13f1 commit c47e940
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments