mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Fix crash when using empty V8 strings with bindings (issue #1015).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1308 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
		@@ -1276,9 +1276,12 @@ void CefV8ValueImpl::InitString(CefString& value) {
 | 
			
		||||
  const cef_string_t* str = value.GetStruct();
 | 
			
		||||
  if (str) {
 | 
			
		||||
    string_value_ = *str;
 | 
			
		||||
    value.GetWritableStruct()->str = NULL;
 | 
			
		||||
    cef_string_t* writable_struct = value.GetWritableStruct();
 | 
			
		||||
    writable_struct->str = NULL;
 | 
			
		||||
    writable_struct->length = 0;
 | 
			
		||||
  } else {
 | 
			
		||||
    string_value_.str = NULL;
 | 
			
		||||
    string_value_.length = 0;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user