frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
733 stars 242 forks source link

Fix NativePointer from number for 32-bit BE. #752

Closed forky2 closed 11 months ago

forky2 commented 11 months ago

Fix new NativePointer(number) for 32-bit BE architectures (e.g. ARM BE8).

This union which overlaps gpointer and int64_t fails to allow extraction of gpointer when architecture is 32-bit big endian. For that combination padding is required, which this patch adds only for that combination.