Use malloc fail null by default#8101
Conversation
1b30d51 to
f38c54a
Compare
5ca8193 to
9ede58f
Compare
41c7eaf to
27c99d5
Compare
27c99d5 to
ed0acac
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8101 +/- ##
========================================
Coverage 79.08% 79.08%
========================================
Files 1696 1697 +1
Lines 196429 196504 +75
========================================
+ Hits 155343 155405 +62
- Misses 41086 41099 +13 ☔ View full report in Codecov by Sentry. |
regression/contracts-dfcc/chain.sh
Outdated
| fi | ||
|
|
||
| if [[ "${args_inst}" != *"malloc"* ]]; then | ||
| args_inst="--no-malloc-fail $args_inst" |
There was a problem hiding this comment.
Please don't do that. It will be outrageously difficult to understand what tests actually do.
There was a problem hiding this comment.
Hi Daniel, we're handling this in a different PR (#8106) where we're reverting this change across all regression/ build files.
It would be preferable if we can merge this one with this change in, so that it's on par with the other build changes currently in develop, so that we can then track and remove all of them in #8106 instead of having some of them here and some there, increasing the chance of having some stale changes by accident.
regression/goto-instrument/chain.sh
Outdated
|
|
||
| rm -f "${target}-mod.gb" | ||
| $goto_instrument ${args} "${target}.gb" "${target}-mod.gb" | ||
| $goto_instrument --no-malloc-fail ${args} "${target}.gb" "${target}-mod.gb" |
So that the malloc failure configuration can be returned to non failure, without using the full `--no-standard-checks` option.
The calls to the `set_default_analysis_flags` functions need to be before the call to `config.set(cmdline)` so that the malloc defaults can be set before being overridden by any command line specified malloc behaviour.
In order to keep existing tests passing.
ed0acac to
c3635b1
Compare
2ace435 to
4bcbc9d
Compare
4bcbc9d to
c3c7bc0
Compare
This PR updates the defaults so that we use a model where malloc may fail with a null return value. This work is split from #8093 This change in the default avoids the possibility of memory allocations which overflow the size of the object bits.