-
Notifications
You must be signed in to change notification settings - Fork 79
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
Tlsf memory corruption detection #77
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Applied commit from https://github.com/ndantam/tlsfmalloc: From 2d7a980b887e8a33754a7660f41ea5ebf7d5c88a Mon Sep 17 00:00:00 2001 From: "Neil T. Dantam" <ntd@gatech.edu> Date: Wed, 13 Nov 2013 00:41:15 -0500 Subject: [PATCH] Use the low bits of bhdr_t.prev_hdr to check for errors * The low bits of prev_hdr field should contain the complement of the low bits of the size field. * When this is not the case, it indicates heap corruption or a programming error * Alternatively, or additionally, we could use parity bits for error checking
Applied commit from https://github.com/ndantam/tlsfmalloc: From eadf5d0bfd247b43833a6042ca3ecac4f9d2cdeb Mon Sep 17 00:00:00 2001 From: "Neil T. Dantam" <ntd@gatech.edu> Date: Tue, 19 Nov 2013 19:07:52 -0500 Subject: [PATCH] Cast pointers via union on GCC
Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
solves compilation errors with gcc-4.8 and XCode 5.1 Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
This reverts commit e2327e0. This commit prevents the use of multiple memory pools, (only accessible through the free/malloc_ex).
… to avoid corrupting previously allocated memory Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
* is more readable * is correct on Mac OSX 10.8 using clang/XCode 5.1 Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
Any reason that this hasn't been merged? We've been using this for months on operational systems ... |
The only reason is that ATM it aborts your application, it's uncertain yet if this is really what everyone wants. |
Ok, so who makes the decision to merge it or not? Let's either merge, change it, or discard it, rather than leaving it hanging. |
merged into toolchain-2.9: 87220dc |
…S_RT_MALLOC_MMAP Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>
meyerj
added a commit
to meyerj/rtt
that referenced
this pull request
Oct 20, 2017
…ory_corruption_detection Tlsf memory corruption detection
meyerj
added a commit
to meyerj/rtt
that referenced
this pull request
Oct 23, 2017
…ory_corruption_detection Tlsf memory corruption detection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reopening PR #63