mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-2736 fixed concurrent modification in DataTypeManagerDB
This commit is contained in:
parent
5de10ed2a9
commit
7d7bc1e6ff
1 changed files with 3 additions and 1 deletions
|
@ -1111,7 +1111,9 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
buildSortedDataTypeList();
|
buildSortedDataTypeList();
|
||||||
Iterator<DataType> it = sortedDataTypes.iterator();
|
// make copy of sortedDataTypes list before iterating as dt.dataTypeReplaced may
|
||||||
|
// call back into this class and cause a modification to the sortedDataTypes list.
|
||||||
|
Iterator<DataType> it = new ArrayList<>(sortedDataTypes).iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
DataType dt = it.next();
|
DataType dt = it.next();
|
||||||
dt.dataTypeReplaced(existingDt, newDt);
|
dt.dataTypeReplaced(existingDt, newDt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue