https://bugs.kde.org/show_bug.cgi?id=398136

Thomas Fischer <fisc...@unix-ag.uni-kl.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|bddb06c5cec1d5b6e22b423f248 |https://commits.kde.org/kbi
                   |5825261ad8f49               |btex/bddb06c5cec1d5b6e22b42
                   |                            |3f2485825261ad8f49
   Version Fixed In|                            |0.8.2
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Thomas Fischer <fisc...@unix-ag.uni-kl.de> ---
Git commit bddb06c5cec1d5b6e22b423f2485825261ad8f49 by Thomas Fischer.
Committed on 11/09/2018 at 21:04.
Pushed by thomasfischer into branch 'kbibtex/0.8'.

Fixing conflict btwn iterating over QMap and removing element

Iterating over a QMap<K,V> object and then for one selected element
stopping the iteration and removing this element using the key, i.e.
QMap<K,V>::remove(key) interferes with the map's internal memory
management and may lead to crashes.

To avoid interference, better to remove the selected element using the
iterator directly, i.e. QMap<K,V>::erase(it).
FIXED-IN: 0.8.2

M  +5    -3    src/data/entry.cpp
M  +1    -0    src/test/CMakeLists.txt

https://commits.kde.org/kbibtex/bddb06c5cec1d5b6e22b423f2485825261ad8f49

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to