Skip to content

Conversation

@struct
Copy link
Owner

@struct struct commented Jul 30, 2022

This PR introduces memset_sanity as first proposed in #114 by @devnexen.
Updates the documentation for make libc_sanity_tests

## Enable hooking of memcpy/memset to detect out of bounds
## r/w operations on chunks allocated with IsoAlloc. Does
## not require ALLOC_SANITY is enabled. On MacOS you need
## to set FORTIFY_SOURCE to 0. Leave these commented if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FORTIFY_SOURCE=0 is highly problematic, should a bug be opened to tackle this?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Remove it and compile IsoAlloc for MacOS to see the build error. Ideally we should only do this for MacOS where its actually breaking the build. And then probably another bug to figure out why its breaking in the first place.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here f6b38d2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still sucks: isoalloc shouldn't disable FORTIFY_SOURCE :/

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Just need time to run down why the build is breaking on MacOS

@struct struct deleted the memset_sanity branch August 27, 2022 20:44
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.

3 participants