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
Merge libpe #180
Merged
Merged
Merge libpe #180
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
You can load a file and keep its stream open for further usage by using pe_load_ext with option LIBPE_OPT_NOCLOSE_FD. Example: pe_ctx_t ctx; pe_err_e err = pe_load_ext(&ctx, "file.exe", LIBPE_OPT_NOCLOSE_FD); You do NOT need to manually close the stream since pe_unload already takes care of it.
Be as precise as possible about type usage.
Introduce new option: LIBPE_OPT_OPEN_RW. This is used to decide which flags to pass to open(2) and mmap(2). For instance, we should only call open(2) with O_RDWR if we have permission to write the file we're analyzing. The same applies to mmap(2) with MAP_SHARED. - Fix pe_err_e values. Duh!
This reverts commit 12083cd.
It now validates the read range [ptr,size].
Added NetBSD support to libpe's Makefile (identical to Linux)
Got rid of pe_utils_round_up() [unecessary].
libpe improvements
refactored some routines, improve code performance, as well as added error checking for cases that had none
…n element in an array
Some Linux distributions (such as Debian [1]) are striving to make their build reproducible. The usage of filesystem globbing as an input to the make build might cause inconsistencies due to differences between locales [2]. This inconsistent behavior prevents reproducible builds. This patch sorts the Makefile inputs to ensure they will be always processed in the same order [3], contributing to the build system reproducibility. [1] https://wiki.debian.org/ReproducibleBuilds [2] https://reproducible-builds.org/docs/stable-inputs/#fn:sorted-wildcard [3] https://reproducible-builds.org/docs/stable-inputs/
Sort Makefile inputs to make build reproducible
Checks if ordinal < exp->NumberOfFuntions before assigning value to a…
FIx rva2ofs when exe has no sections
Ignore resource directory size
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.
This looks scary but is very much not that bad. Just adding libpe to the main repository while keeping git history in tact.