mirror of
https://github.com/revanced/aapt2.git
synced 2025-02-18 13:16:48 +01:00
fix: Specify minimum alignment for ResStringPool_span
to fix SIGBUS on ARMv7
Apparently, a SIGSEGV is also fixed by that.
This commit is contained in:
parent
fa1b651994
commit
8285e73cd7
@ -12,6 +12,19 @@ index cae2d0bc16b3..13c5f8fc84e8 100644
|
||||
#include <binder/TextOutput.h>
|
||||
|
||||
#endif
|
||||
diff --git a/src/base/libs/androidfw/include/androidfw/ResourceTypes.h b/libs/androidfw/include/androidfw/ResourceTypes.h
|
||||
index 3d66244646d5..2d27c34a9154 100644
|
||||
--- a/src/base/libs/androidfw/include/androidfw/ResourceTypes.h
|
||||
+++ b/src/base/libs/androidfw/include/androidfw/ResourceTypes.h
|
||||
@@ -500,7 +500,7 @@ struct ResStringPool_span
|
||||
|
||||
// The range of characters in the string that this span applies to.
|
||||
uint32_t firstChar, lastChar;
|
||||
-};
|
||||
+} __attribute__((__packed__, aligned(1)));
|
||||
|
||||
/**
|
||||
* Convenience class for accessing data in a ResStringPool resource.
|
||||
diff --git a/src/base/libs/androidfw/include/androidfw/StringPiece.h b/src/base/libs/androidfw/include/androidfw/StringPiece.h
|
||||
index 921877dc4982..27e27e1c2b94 100644
|
||||
--- a/src/base/libs/androidfw/include/androidfw/StringPiece.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user