forked from staticafi/JetKlee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is a squash of the following commits changing the same piece of code so that the tests still pass: * Fix the comparison of object pointers We must use the symbolic address when we compare to a number. Fixes staticafi#12. * Fix comparing to freed pointers * Fix comparing pointers * For pointers into the same memory object, compare their offsets, do not compare their symbolic addresses. * Fix comparison of pointers to null * Fix comparison of pointers for equality If we know the segments, we do not need to use the addresses (since we do not assume the inequality to other objects it would introduce false positives). * Fix comparing freed pointers * Freed pointers are usually concrete, so we must make them an exception in the code. * Allow comparing symbolic pointers for (in)equality That can be derived without using symbolic addresses. * Executor: fix handling freed pointers There was missing the "else" branch, so we overwrote the pointer in the case it was not resolved. Fixes staticafi/symbiotic#89
- Loading branch information
Showing
4 changed files
with
87 additions
and
84 deletions.
There are no files selected for viewing
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
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
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
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