Changeset 221008 in webkit
- Timestamp:
- Aug 22, 2017 2:51:22 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220998 r221008 1 2017-08-22 Zan Dobersek <zdobersek@igalia.com> 2 3 GLContext: zero-initialize the GLContext pointer in ThreadGlobalGLContext 4 https://bugs.webkit.org/show_bug.cgi?id=175819 5 6 Reviewed by Xabier Rodriguez-Calvar. 7 8 * platform/graphics/GLContext.cpp: The ThreadGlobalGLContext object is 9 allocated on heap, so the embedded GLContext pointer can contain a 10 non-null value that can cause problems when e.g. checking for a current 11 GLContext on some specific thread on which a GLContext hasn't yet been 12 made current. Zero-initializing this pointer will avoid false positives 13 that can occur in these circumstances. 14 1 15 2017-08-21 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/GLContext.cpp
r219391 r221008 51 51 52 52 private: 53 GLContext* m_context ;53 GLContext* m_context { nullptr }; 54 54 }; 55 55
Note: See TracChangeset
for help on using the changeset viewer.