You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently started to use Arch Linux after an old Ubuntu system and wanted to use the always up-to-date packages. I installed the cppcheck utility and tested it on the hawaii-shell codebase. I've found a similar bug in three destructors:
src/server/shell.cpp:192
src/server/effects/inoutsurfaceeffect.cpp:73
src/server/effects/minimizeeffect.cpp:97
There are also a couple of warnings, for example:
src/server/workspace.cpp:115 two returns in a function
members are not initialized in constructor
missing copy constructor (class contains a pointer to allocated memory)
...
I recently started to use Arch Linux after an old Ubuntu system and wanted to use the always up-to-date packages. I installed the cppcheck utility and tested it on the hawaii-shell codebase. I've found a similar bug in three destructors:
src/server/shell.cpp:192
src/server/effects/inoutsurfaceeffect.cpp:73
src/server/effects/minimizeeffect.cpp:97
After calling erase(), the iterator becomes invalid, so ++i is undefinde behavior.
The solution is decribed here: http://stackoverflow.com/questions/4260891/can-i-remove-elements-from-stdlist-when-im-iterating-on-it.
The text was updated successfully, but these errors were encountered: