8000 Correct typo in malloc debug environment variable by torben-hansen · Pull Request #2391 · aws/aws-lc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Correct typo in malloc debug environment variable #2391

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 2 commits into from
May 3, 2025

Conversation

torben-hansen
Copy link
Contributor

Description of changes:

I don't think this is currently used for anything. While the malloc-test machinery is working atm, some errors won't be caught due to the typo. https://man7.org/linux/man-pages/man3/mallopt.3.html says it should be MALLOC_CHECK_.

The malloc test is sorta in a weird state. Upstream has migrated malloc hijack functions to mem.c. But not in this repo. However, the build support exists in the shape of

if(MALLOC_FAILURE_TESTING)
  add_definitions(-DBORINGSSL_MALLOC_FAILURE_TESTING)
endif()

which does nothing...

Anyway, this could be useful for something, one day, so I left all the code there. For further features, some honorary mentions one could research are MALLOC_PERTURB_ and mcheck().

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@torben-hansen torben-hansen requested a review from a team as a code owner May 2, 2025 21:33
andrewhop
andrewhop previously approved these changes May 2, 2025
smittals2
smittals2 previously approved these changes May 2, 2025
@codecov-commenter
Copy link
codecov-commenter commented May 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.76%. Comparing base (ef71b09) to head (4f21d7a).
Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2391      +/-   ##
==========================================
- Coverage   78.77%   78.76%   -0.01%     
==========================================
  Files         620      620              
  Lines      107961   107961              
  Branches    15329    15329              
==========================================
- Hits        85046    85038       -8     
- Misses      22258    22266       +8     
  Partials      657      657              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@torben-hansen torben-hansen dismissed stale reviews from smittals2 and andrewhop via 4f21d7a May 2, 2025 22:01
@torben-hansen torben-hansen merged commit d34e08b into aws:main May 3, 2025
110 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0