Last active
August 29, 2015 14:14
-
-
Save mesaleh/98f610a4a4adf99d769b to your computer and use it in GitHub Desktop.
Used for my blog entry to describe PEiD vulnerability
This file contains hidden or 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
int size = getMinSectionSize() | |
// ** overflow can happen here too | |
int bound = size + PointerToRawData; | |
if (bound <= file_size) ACCEPTED; | |
else INVALID_FILE; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment