[Webkit-unassigned] [Bug 122277] Missing NULL check at destruct API of VectorDestructor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 6 00:39:20 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122277





--- Comment #13 from Byungseon Shin <sun.shin at lge.com>  2013-10-06 00:38:12 PST ---
Even after m_styleSheetsForStyleSheetList.swap(activeStyleSheets), activeStyleSheets size value preserved when updateActiveStyleSheets returns.
However, when destructor tries to delete elements, it had been cleared by swap call. That's why crash happens.

I couldn't understand why swap call needed because both local variables could be destroyed when it returns.
So, I have modified a patch to do copy of each vectors.
And now crash is gone.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list