Add REL bin plugin
- [x] Mark this if you consider it ready to merge
- [x] I've added tests (optional)
- [ ] I wrote some lines in the book (optional)
Description
https://wiki.tockdom.com/wiki/REL_(File_Format)
- [x] Section loading
- [x] Meson build
- [x] Make build
- [ ] Profiling / performance
- [x] Fuzzing
- [x] Internal relocs
- [x] External relocs to ROM/symbols
- [x] ~~External relocs to PIC/imports~~ (out of scope)
- [ ] Test DOL/REL linking
- [x] Add tests
- [x] Formatting, code cleanup
Closes #20508
[r] Cannot open '/Users/richard/prj/mkw/artifacts/orig/pal/StaticR.rel' 53
send this file to this repo https://github.com/radareorg/radare2-testbins/pulls
Ready for review, pending merge of https://github.com/radareorg/radare2-testbins/pull/78
libFuzzer found something 🗡️
% r2 -F rel oom-3852cb7a9012f8d9f2f3c21ad599c97b1caee477
INFO: REL module ID 00000003
INFO: REL version 3
zsh: segmentation fault r2 -F rel oom-3852cb7a9012f8d9f2f3c21ad599c97b1caee477
Fixed OOM fuzz findings by adding limits to section/imp/reloc counts. Will let libFuzzer run for another hour or two
This pull request introduces 1 alert when merging 790e67f732e116d533b020c3dec1c375d4b3cf69 into a86c2a1aaad65a4a8c848af0a892e67b715eef51 - view on LGTM.com
new alerts:
- 1 for Unsigned comparison to zero
This pull request introduces 1 alert when merging 238bd3cb7a61ca0ba4f6f444290dbae9aebf2837 into 2913f019f93bce04a21f9b29f3d0e98d7d51a767 - view on LGTM.com
new alerts:
- 1 for Unsigned comparison to zero
make it grin and ill merge
ping
Tired of waiting, i just fixed the crash and merged the thing. thanks!!
Apologies for the wait 😢 Will try to make it up by addressing some backlogged tickets
Np :D thanks for the contrib! It was just a tiny thing to get it in. I know its tedious to keep up with all the prs. So its ok for me to take over them