mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
BitFields - disallow bitfield markup for VariableOffset. Insufficient
information for correct markup.
This commit is contained in:
parent
1946e8971d
commit
a6d692e19d
1 changed files with 3 additions and 2 deletions
|
@ -159,7 +159,8 @@ public class VariableOffset {
|
||||||
}
|
}
|
||||||
if (dt instanceof Structure) {
|
if (dt instanceof Structure) {
|
||||||
DataTypeComponent cdt = ((Structure) dt).getComponentAt(intOff);
|
DataTypeComponent cdt = ((Structure) dt).getComponentAt(intOff);
|
||||||
if (cdt == null) {
|
if (cdt == null || cdt.isBitFieldComponent()) {
|
||||||
|
// NOTE: byte offset is insufficient to identify a specific bitfield
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
String fieldName = cdt.getFieldName();
|
String fieldName = cdt.getFieldName();
|
||||||
|
@ -195,7 +196,7 @@ public class VariableOffset {
|
||||||
absOffset = intOff;
|
absOffset = intOff;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Object> list = new ArrayList<Object>();
|
List<Object> list = new ArrayList<>();
|
||||||
list.add(new LabelString(name.toString(), LabelString.VARIABLE));
|
list.add(new LabelString(name.toString(), LabelString.VARIABLE));
|
||||||
|
|
||||||
if (absOffset != 0 || scalarAdjustment != 0) {
|
if (absOffset != 0 || scalarAdjustment != 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue