The attached patch fixes a crasher reported in https://bugs.freedesktop.org/show_bug.cgi?id=37252 The original code always assumed that the find call on the map container always finds a match (as it didn't check against the end iterator after the call returns), but apparently in some cases no match can be found. The attached patch simply checks for the end iterator position, and if no match is found, it simply returns right there. I'd like to commit this into the 3.4 branch and the 3.4.0 branch as well (if we've already branched). Thanks, Kohei
Attachment:
0001-fdo-37252-Don-t-assume-you-ll-always-find-a-match.patch
Description: Binary data