mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
GT-3032 corrected aligned structure packer exception triggered by
flexible array
This commit is contained in:
@@ -59,7 +59,8 @@ class AlignedComponentPacker {
|
||||
* @param isLastComponent true if dtc is the last component within the structure
|
||||
*/
|
||||
void addComponent(InternalDataTypeComponent dtc, boolean isLastComponent) {
|
||||
if (dtc.getDataType() == DataType.DEFAULT || dtc.isFlexibleArrayComponent()) {
|
||||
if (dtc.getDataType() == DataType.DEFAULT ||
|
||||
(dtc.isFlexibleArrayComponent() && !isLastComponent)) {
|
||||
throw new IllegalArgumentException("unsupported component");
|
||||
}
|
||||
if (!packComponent(dtc)) {
|
||||
|
||||
Reference in New Issue
Block a user