fix: use raw bytes for r8 map type order rules#498
Conversation
CalebFenton
left a comment
There was a problem hiding this comment.
This seems extremely bad. Why can't we use the dex module? If we hardcode these values, do we know that they'll never break? We're hardcoding the same value for different things, we're doing some strange casting.
There are no tests, there's no explanation for any of this.
|
Instead of making the code much worse, why not just fix the dex module? |
I mentioned it in the description above as:
Once again, kindly read: #497 (comment) |
these are tied to the foundational DEX file format specification, which hasn't changed its core header layout or map item sizing in years afaik (and doing so would break backward compatibility with the Android runtime). Because the current YARA DEX module fails to parse DEX versions 39+, we have to read the raw bytes manually to support newer files. Just to clarify, here's what
|
more info: #497 (comment)