mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Check C API structure sizes before copying values to C++ classes (fixes issue #3238)
This commit is contained in:
committed by
Marshall Greenblatt
parent
db9298fd3e
commit
5c0895e27f
@ -266,6 +266,9 @@ def format_translation_includes(header, body):
|
||||
if body.find('cef_api_hash(') > 0:
|
||||
result += '#include "include/cef_api_hash.h"\n'
|
||||
|
||||
if body.find('template_util::has_valid_size(') > 0:
|
||||
result += '#include "libcef_dll/template_util.h"\n'
|
||||
|
||||
# identify what CppToC classes are being used
|
||||
p = re.compile('([A-Za-z0-9_]{1,})CppToC')
|
||||
list = sorted(set(p.findall(body)))
|
||||
|
Reference in New Issue
Block a user