guangli-dai
6200e8987f
Reformat the codebase with the clang-format 18.
2026-03-10 18:14:33 -07:00
Qi Wang
05160258df
When safety_check_fail, also embed hint msg in the abort function name
...
because there are cases only logging crash stack traces.
2024-01-11 14:19:54 -08:00
Qi Wang
7d563a8f81
Update safety check message to remove --enable-debug when it's already on.
2023-09-05 14:15:45 -07:00
Qi Wang
391bad4b95
Avoid abort() in test/integration/cpp/infallible_new_true.
...
Allow setting the safety check abort hook through mallctl, which avoids abort()
and core dumps.
2022-04-25 11:29:32 -07:00
David Goldblatt
4f7cb3a413
Sized deallocation: fix a typo.
...
dealloction -> deallocation.
2021-05-04 16:46:15 -07:00
Qi Wang
041145c272
Report the correct and wrong sizes on sized dealloc bug detection.
2021-02-08 14:42:27 -08:00
Qi Wang
f3b2668b32
Report the offending pointer on sized dealloc bug detection.
2021-02-08 14:42:27 -08:00
David Goldblatt
53084cc5c2
Safety check: Don't directly abort.
...
The sized dealloc checks called the generic safety_check_fail, and then called
abort. This means the failure case isn't mockable, hence not testable. Fix it
in anticipation of a coming diff.
2020-08-05 19:34:05 -07:00
Qi Wang
974222c626
Add safety check on sdallocx slow / sampled path.
2020-01-31 00:04:22 -08:00
David Goldblatt
33e1dad680
Safety checks: Add a redzoning feature.
2019-04-15 16:48:12 -07:00
David Goldblatt
b92c9a1a81
Safety checks: Indirect through a function.
...
This will let us share code on failure pathways.pathways
2019-04-15 16:48:12 -07:00