-
Notifications
You must be signed in to change notification settings - Fork 51
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
refactor: multiple changes in macho
module
#76
Merged
Merged
Commits on Jan 31, 2024
-
refactor: multiple changes in
macho
moduleThis is a large refactoring of the `macho` with the intention of simplifying the existing code and fix some issues. The more important changes are: * all `swap_xxxxx` functions are removed. Instead of swapping integers after being read from the file, endianness of the file is taken into account while reading individual integers. This is more efficient and easier to maintain. * some portions of the parsing code is simplified by making use of more advanced features of the `nom` crate. * the `cmd` and `cmdsize` fields were removed from the some structures. These fields are not very useful, and they don't appear in the original implementation in YARA. The `cmd` field for example, has always the same value (1) in `Segment` structures, because command segments are always defined by the same type of command. * `rpath` is now a list of string instead of a list of structures. * magic numbers look exactly as they appear in the original file, if the magic is `CA FE BA BE`, it will translated into a `0xcafebabe` value.
Configuration menu - View commit details
-
Copy full SHA for 9150fc8 - Browse repository at this point
Copy the full SHA 9150fc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81ca16f - Browse repository at this point
Copy the full SHA 81ca16fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d35d94 - Browse repository at this point
Copy the full SHA 2d35d94View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6631c8 - Browse repository at this point
Copy the full SHA b6631c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a225e4e - Browse repository at this point
Copy the full SHA a225e4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4867e9 - Browse repository at this point
Copy the full SHA c4867e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 936e189 - Browse repository at this point
Copy the full SHA 936e189View commit details -
fix: always read integers using the endianness that corresponds to th…
…e file Also fix an issue in `m68k_thread_state` and add more test cases.
Configuration menu - View commit details
-
Copy full SHA for d74e7db - Browse repository at this point
Copy the full SHA d74e7dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for abc234c - Browse repository at this point
Copy the full SHA abc234cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 032fca4 - Browse repository at this point
Copy the full SHA 032fca4View commit details -
Configuration menu - View commit details
-
Copy full SHA for de2d9a9 - Browse repository at this point
Copy the full SHA de2d9a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a6045c - Browse repository at this point
Copy the full SHA 3a6045cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a2ad8e - Browse repository at this point
Copy the full SHA 2a2ad8eView commit details
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.