Skip to content
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

Enable div*64 and mod*64 taint unit tests. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarkMankins
Copy link

Note that generate_tests.c was updated to special case the operands for these
tests. 32-bit gcc inserts a helper function into the compiled binary to
perform 64-bit mod and div operations. This helper has some optimizations
that shortcut the calculations in some cases. Using specific (large) values
bypasses those optimizations which results in taint labels begin transferred
to all bytes in the destination variable.

Note that generate_tests.c was updated to special case the operands for these
tests.  32-bit gcc inserts a helper function into the compiled binary to
perform 64-bit mod and div operations.  This helper has some optimizations
that shortcut the calculations in some cases.  Using specific (large) values
bypasses those optimizations which results in taint labels begin transferred
to all bytes in the destination variable.
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.

1 participant