Use-after-free in economy/economy.cc
Bug #1199812 reported by
Hans Joachim Desserud
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Found by scan-build (llvm 3.3) in r6601
Note that these are two separate reports, though the issues are located in the same file (same function even), thus it probably makes sense to deal with them at the same time.
To post a comment you must log in.
Both are false positives with the same root cause, pretty sure about this. But it not clear from the code that this is so, I added an assert to deal with this.