https://issues.apache.org/ooo/show_bug.cgi?id=122591
--- Comment #5 from [email protected] --- (In reply to Rob Weir from comment #4) > I wonder, is there any way to search for other occurrences of this kind of > problem? The crash happens when uninitialized iterators are dereferenced in MSVC's iterator debugging which is only enabled in developer builds (a.k.a as non-product / dbgutil-enabled builds). On MSVC2008_SP1's xtree the illegal dereferencing is protected by an _Has_container() check. AFAIK there are two ways to search for such problems. A non-product build that was created on a system with such an older MSVC xtree header that doesn't do the _Has_container() check before dereferencing a container is needed for both ways: - run the automatic tests on that build - coverity is good at finding uses of uninitialized stuff and if such a cov-special build was submitted to their scan service there is a chance that it would be reported as medium or high impact problem. Regarding the patches suggested by Ariel either one is fine: the first is minimally invasive and clear whereas the second results in cleaner code as it also removes a quite superfluous class. -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
