Changeset 17636 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-03-22T11:16:48+01:00 (4 years ago)
Author:
GerdP
Message:

fix #20578: JOSM is out of memory - While adding a local xml preset

  • add simple check for stack size
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java

    r16690 r17636  
    241241                if (it.hasNext()) {
    242242                    lastIdIterators.push(it);
     243                    if (lastIdIterators.size() > 100) {
     244                        throw new SAXException(tr("Reference stack for {0} is too large", ref));
     245                    }
    243246                } else {
    244247                    Logging.warn("Ignoring reference '"+ref+"' denoting an empty chunk");
Note: See TracChangeset for help on using the changeset viewer.