apimall / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Crash when returning NULL from CefClient::GetRenderHandler #1504

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an off-screen rendering application that returns a member variable 
from CefClient::GetRenderHandler.
2. Clear the member variable in OnBeforeClose such that GetRenderHandler now 
returns NULL.

What is the expected output? What do you see instead?
The application should shut down successfully. Instead, CEF internally 
dereferences the value returned from GetRenderHandler without first checking 
that it's non-NULL.

Please use labels and text to provide additional information.
CEF currently only checks that GetRenderHandler returns non-NULL during browser 
creation. All CEF uses of GetRenderHandler should check that the return value 
is non-NULL for added safety.

Original issue reported on code.google.com by magreenb...@gmail.com on 26 Jan 2015 at 12:55

GoogleCodeExporter commented 9 years ago
Fixed in trunk revision 1995 and 2272 branch revision 1996.

Original comment by magreenb...@gmail.com on 26 Jan 2015 at 12:57