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

Add macho parser for use by C inject_hash #1435

Merged
merged 36 commits into from
Apr 15, 2024

Commits on Apr 15, 2024

  1. add macho parser

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2d64aa3 View commit details
    Browse the repository at this point in the history
  2. add infra for macho parser tests

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    0a5d6ee View commit details
    Browse the repository at this point in the history
  3. add macho testing file

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    b9048b5 View commit details
    Browse the repository at this point in the history
  4. get tests working

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    8ae5e57 View commit details
    Browse the repository at this point in the history
  5. more work on tests

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    12a1afe View commit details
    Browse the repository at this point in the history
  6. get read macho file test working

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a6f3890 View commit details
    Browse the repository at this point in the history
  7. rework macho free function

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    bf18e42 View commit details
    Browse the repository at this point in the history
  8. remove unused macho print helper function

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    996a19e View commit details
    Browse the repository at this point in the history
  9. implement get_macho_section_data test

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    6b2b12d View commit details
    Browse the repository at this point in the history
  10. fix symbol table not being read correctly sometimes

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2df5ec7 View commit details
    Browse the repository at this point in the history
  11. add working symbol table test

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d27dfa0 View commit details
    Browse the repository at this point in the history
  12. refactor string table

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    166ed73 View commit details
    Browse the repository at this point in the history
  13. read index correctly in test

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    cff1be9 View commit details
    Browse the repository at this point in the history
  14. remove more camelcase

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2195181 View commit details
    Browse the repository at this point in the history
  15. add better failure handling to macho parser

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    c25ce90 View commit details
    Browse the repository at this point in the history
  16. remove more camel case

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    27bb119 View commit details
    Browse the repository at this point in the history
  17. move global variables and defines into main function

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    4ed681e View commit details
    Browse the repository at this point in the history
  18. remove todos

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    7bb4180 View commit details
    Browse the repository at this point in the history
  19. start convert C tests to C++ tests utilizing google test

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    093f28d View commit details
    Browse the repository at this point in the history
  20. transfer remaining tests and remove legacy test file

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d629c08 View commit details
    Browse the repository at this point in the history
  21. clean up code

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    24dd3d0 View commit details
    Browse the repository at this point in the history
  22. add missing copyright

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    42f007c View commit details
    Browse the repository at this point in the history
  23. add macho parser tests to run_tests target

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    0adaeda View commit details
    Browse the repository at this point in the history
  24. use calloc ensure correct contents of memcmp data

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    622c593 View commit details
    Browse the repository at this point in the history
  25. address PR comments

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    70b639a View commit details
    Browse the repository at this point in the history
  26. remove typedef aliases

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1d87e45 View commit details
    Browse the repository at this point in the history
  27. add section_index counting

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2d33602 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1d1a567 View commit details
    Browse the repository at this point in the history
  29. avoid using memcpy to assign string to arrays

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    f507f51 View commit details
    Browse the repository at this point in the history
  30. avoid memory leakage in tests

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    15f8083 View commit details
    Browse the repository at this point in the history
  31. correct return value

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    01cb226 View commit details
    Browse the repository at this point in the history
  32. add missing error handling

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a564221 View commit details
    Browse the repository at this point in the history
  33. use set indices for sections we're looking for

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    be280e9 View commit details
    Browse the repository at this point in the history
  34. remove unnecessary macro

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    638ff8b View commit details
    Browse the repository at this point in the history
  35. add comment explaining why load_command search works

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d9e3234 View commit details
    Browse the repository at this point in the history
  36. use size_t where appropriate

    Bill Yang authored and billbo-yang committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a9a1d4c View commit details
    Browse the repository at this point in the history