Update generated files for check C API structure sizes (fixes issue #3238)

This commit is contained in:
Sergey Markelov 2022-01-27 10:10:29 -07:00 committed by Marshall Greenblatt
parent 5c0895e27f
commit ce891b57e1
18 changed files with 196 additions and 18 deletions

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=3e851a9007832ba6543257d90cfd8588e3540500$
// $hash=7f4782003c961c3bda54d02556dace8d7b5e4e17$
//
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
@ -27,6 +27,7 @@
#include "libcef_dll/ctocpp/pdf_print_callback_ctocpp.h"
#include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
#include "libcef_dll/transfer_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -46,10 +47,18 @@ CEF_EXPORT int cef_browser_host_create_browser(
DCHECK(windowInfo);
if (!windowInfo)
return 0;
if (!template_util::has_valid_size(windowInfo)) {
NOTREACHED() << "invalid windowInfo->[base.]size";
return 0;
}
// Verify param: settings; type: struct_byref_const
DCHECK(settings);
if (!settings)
return 0;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return 0;
}
// Unverified params: client, url, extra_info, request_context
// Translate param: windowInfo; type: struct_byref_const
@ -86,10 +95,18 @@ CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync(
DCHECK(windowInfo);
if (!windowInfo)
return NULL;
if (!template_util::has_valid_size(windowInfo)) {
NOTREACHED() << "invalid windowInfo->[base.]size";
return NULL;
}
// Verify param: settings; type: struct_byref_const
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Unverified params: client, url, extra_info, request_context
// Translate param: windowInfo; type: struct_byref_const
@ -411,6 +428,10 @@ browser_host_print_to_pdf(struct _cef_browser_host_t* self,
DCHECK(settings);
if (!settings)
return;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return;
}
// Unverified params: callback
// Translate param: settings; type: struct_byref_const
@ -759,6 +780,10 @@ browser_host_send_key_event(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefKeyEvent eventObj;
@ -786,6 +811,10 @@ browser_host_send_mouse_click_event(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;
@ -812,6 +841,10 @@ browser_host_send_mouse_move_event(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;
@ -839,6 +872,10 @@ browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;
@ -864,6 +901,10 @@ browser_host_send_touch_event(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefTouchEvent eventObj;
@ -1055,6 +1096,10 @@ browser_host_drag_target_drag_enter(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;
@ -1081,6 +1126,10 @@ browser_host_drag_target_drag_over(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;
@ -1119,6 +1168,10 @@ browser_host_drag_target_drop(struct _cef_browser_host_t* self,
DCHECK(event);
if (!event)
return;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return;
}
// Translate param: event; type: struct_byref_const
CefMouseEvent eventObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8a64cdcb148bd7c9cad278d57c353ebf48386a16$
// $hash=1edf004108ba7cab51110552f50d23e545ae6c72$
//
#include "libcef_dll/cpptoc/cookie_access_filter_cpptoc.h"
@ -17,6 +17,7 @@
#include "libcef_dll/ctocpp/frame_ctocpp.h"
#include "libcef_dll/ctocpp/request_ctocpp.h"
#include "libcef_dll/ctocpp/response_ctocpp.h"
#include "libcef_dll/template_util.h"
namespace {
@ -41,6 +42,10 @@ cookie_access_filter_can_send_cookie(struct _cef_cookie_access_filter_t* self,
DCHECK(cookie);
if (!cookie)
return 0;
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
return 0;
}
// Unverified params: browser, frame
// Translate param: cookie; type: struct_byref_const
@ -81,6 +86,10 @@ cookie_access_filter_can_save_cookie(struct _cef_cookie_access_filter_t* self,
DCHECK(cookie);
if (!cookie)
return 0;
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
return 0;
}
// Unverified params: browser, frame
// Translate param: cookie; type: struct_byref_const

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=630f568e46925a195008194e61cde5339645ae8e$
// $hash=3f01b74591540c44243e693043cb3b8a9f4e05d2$
//
#include "libcef_dll/cpptoc/cookie_manager_cpptoc.h"
@ -17,6 +17,7 @@
#include "libcef_dll/ctocpp/cookie_visitor_ctocpp.h"
#include "libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h"
#include "libcef_dll/ctocpp/set_cookie_callback_ctocpp.h"
#include "libcef_dll/template_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -105,6 +106,10 @@ cookie_manager_set_cookie(struct _cef_cookie_manager_t* self,
DCHECK(cookie);
if (!cookie)
return 0;
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
return 0;
}
// Unverified params: callback
// Translate param: cookie; type: struct_byref_const

View File

@ -9,11 +9,12 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=922e883b71eb54b943f7cb4748bd2298eb296eee$
// $hash=ae61607070ff1973c16bc9b484a33be6b6e22883$
//
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -35,6 +36,10 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
DCHECK(cookie);
if (!cookie)
return 0;
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
return 0;
}
// Verify param: deleteCookie; type: bool_byref
DCHECK(deleteCookie);
if (!deleteCookie)

View File

@ -9,13 +9,14 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8963e8fd758fe86d0f35a5fd81e3f56a0b7aa3cd$
// $hash=5bcef102e9ae42a32b551c3af3decbae11b8b37d$
//
#include "libcef_dll/cpptoc/display_handler_cpptoc.h"
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/frame_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
#include "libcef_dll/transfer_util.h"
namespace {
@ -273,6 +274,10 @@ int CEF_CALLBACK display_handler_on_cursor_change(
DCHECK(custom_cursor_info);
if (!custom_cursor_info)
return 0;
if (!template_util::has_valid_size(custom_cursor_info)) {
NOTREACHED() << "invalid custom_cursor_info->[base.]size";
return 0;
}
// Translate param: custom_cursor_info; type: struct_byref_const
CefCursorInfo custom_cursor_infoObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7cdd0564d9b129bf9f068764d4d1588645445d5b$
// $hash=de81505288135d37f0fc5a334b3951d9519e4fa0$
//
#include "libcef_dll/cpptoc/extension_handler_cpptoc.h"
@ -18,6 +18,7 @@
#include "libcef_dll/ctocpp/extension_ctocpp.h"
#include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -107,6 +108,10 @@ int CEF_CALLBACK extension_handler_on_before_background_browser(
DCHECK(settings);
if (!settings)
return 0;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return 0;
}
// Translate param: client; type: refptr_same_byref
CefRefPtr<CefClient> clientPtr;
@ -180,6 +185,10 @@ extension_handler_on_before_browser(struct _cef_extension_handler_t* self,
DCHECK(windowInfo);
if (!windowInfo)
return 0;
if (!template_util::has_valid_size(windowInfo)) {
NOTREACHED() << "invalid windowInfo->[base.]size";
return 0;
}
// Verify param: client; type: refptr_same_byref
DCHECK(client);
if (!client)
@ -188,6 +197,10 @@ extension_handler_on_before_browser(struct _cef_extension_handler_t* self,
DCHECK(settings);
if (!settings)
return 0;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return 0;
}
// Translate param: windowInfo; type: struct_byref
CefWindowInfo windowInfoObj;

View File

@ -9,12 +9,13 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9f55775c0fcff5993efe9d8c9db75001d4335743$
// $hash=8830306303ec402f4aaa21007719300c320ae77d$
//
#include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h"
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -41,6 +42,10 @@ keyboard_handler_on_pre_key_event(struct _cef_keyboard_handler_t* self,
DCHECK(event);
if (!event)
return 0;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return 0;
}
// Verify param: is_keyboard_shortcut; type: bool_byaddr
DCHECK(is_keyboard_shortcut);
if (!is_keyboard_shortcut)
@ -87,6 +92,10 @@ keyboard_handler_on_key_event(struct _cef_keyboard_handler_t* self,
DCHECK(event);
if (!event)
return 0;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return 0;
}
// Translate param: event; type: struct_byref_const
CefKeyEvent eventObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f9e1fa4fa79e3b66d9d147fd0cdb14da459de85b$
// $hash=b7e2c44f09e8ec252b6481378d8fc8b23ba13f60$
//
#include "libcef_dll/cpptoc/life_span_handler_cpptoc.h"
@ -18,6 +18,7 @@
#include "libcef_dll/ctocpp/dictionary_value_ctocpp.h"
#include "libcef_dll/ctocpp/frame_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -56,10 +57,18 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
DCHECK(popupFeatures);
if (!popupFeatures)
return 0;
if (!template_util::has_valid_size(popupFeatures)) {
NOTREACHED() << "invalid popupFeatures->[base.]size";
return 0;
}
// Verify param: windowInfo; type: struct_byref
DCHECK(windowInfo);
if (!windowInfo)
return 0;
if (!template_util::has_valid_size(windowInfo)) {
NOTREACHED() << "invalid windowInfo->[base.]size";
return 0;
}
// Verify param: client; type: refptr_same_byref
DCHECK(client);
if (!client)
@ -68,6 +77,10 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
DCHECK(settings);
if (!settings)
return 0;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return 0;
}
// Verify param: extra_info; type: refptr_diff_byref
DCHECK(extra_info);
if (!extra_info)

View File

@ -9,11 +9,12 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=159abfe9b788acf428465451ee232ee1675ea1a5$
// $hash=f742ecdf3d876a9570fb1b8c80d1ecbab7119e07$
//
#include "libcef_dll/cpptoc/media_sink_device_info_callback_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -33,6 +34,10 @@ void CEF_CALLBACK media_sink_device_info_callback_on_media_sink_device_info(
DCHECK(device_info);
if (!device_info)
return;
if (!template_util::has_valid_size(device_info)) {
NOTREACHED() << "invalid device_info->[base.]size";
return;
}
// Translate param: device_info; type: struct_byref_const
CefMediaSinkDeviceInfo device_infoObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b64fcfb34da785eccf9a1232b35f485fbc838bda$
// $hash=17fc7e8f42e6c518405f2aba5e849c98bf8122ce$
//
#include "libcef_dll/cpptoc/render_handler_cpptoc.h"
@ -17,6 +17,7 @@
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -173,6 +174,10 @@ render_handler_get_screen_info(struct _cef_render_handler_t* self,
DCHECK(screen_info);
if (!screen_info)
return 0;
if (!template_util::has_valid_size(screen_info)) {
NOTREACHED() << "invalid screen_info->[base.]size";
return 0;
}
// Translate param: screen_info; type: struct_byref
CefScreenInfo screen_infoObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=0be94c1d5a7a266610c3848f1732452cb33dd7a8$
// $hash=ab7b829bdc8e583b08496227e5e9bebc2b166025$
//
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
@ -23,6 +23,7 @@
#include "libcef_dll/ctocpp/request_context_handler_ctocpp.h"
#include "libcef_dll/ctocpp/resolve_callback_ctocpp.h"
#include "libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h"
#include "libcef_dll/template_util.h"
#include "libcef_dll/transfer_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -46,6 +47,10 @@ CEF_EXPORT cef_request_context_t* cef_request_context_create_context(
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Unverified params: handler
// Translate param: settings; type: struct_byref_const

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=ed2a9f38555ed559f342f6fd39f21192611771ee$
// $hash=3c4be7d7450ee803b69453ae8b32dd37d95c921a$
//
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
@ -26,6 +26,7 @@
#include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -44,6 +45,10 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Unverified params: client, url, extra_info, request_context, delegate
// Translate param: settings; type: struct_byref_const

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8f3129779912a325240795e05610d6190997e028$
// $hash=18d85c2997264af0f94976650eaf931805fa352e$
//
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
@ -18,6 +18,7 @@
#include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -97,6 +98,10 @@ browser_view_delegate_get_delegate_for_popup_browser_view(
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Verify param: client; type: refptr_same
DCHECK(client);
if (!client)

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=fbec1a9b566580497409a7dbd3382e7c51db61ae$
// $hash=4d101afc4f559c6f0375ad4016e5575ab88bf61f$
//
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
@ -25,6 +25,7 @@
#include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -95,6 +96,10 @@ panel_set_to_box_layout(struct _cef_panel_t* self,
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Translate param: settings; type: struct_byref_const
CefBoxLayoutSettings settingsObj;

View File

@ -9,13 +9,14 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=0009ced13fa9f1e26064455df0c9f5043d7618cf$
// $hash=1a7a3f0cd61dab86aae86ca54e5554671d1850b7$
//
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -40,6 +41,10 @@ textfield_delegate_on_key_event(struct _cef_textfield_delegate_t* self,
DCHECK(event);
if (!event)
return 0;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return 0;
}
// Translate param: event; type: struct_byref_const
CefKeyEvent eventObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=360b248f7f43cd62a111f59a79fc81b40f8d4023$
// $hash=cf3e61b4caedb8689bcc3a0a5b21b1897eef5220$
//
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
@ -29,6 +29,7 @@
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -702,6 +703,10 @@ window_set_to_box_layout(struct _cef_panel_t* self,
DCHECK(settings);
if (!settings)
return NULL;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Translate param: settings; type: struct_byref_const
CefBoxLayoutSettings settingsObj;

View File

@ -9,13 +9,14 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9a65c4a9e35ba40f01a3d27c772ef9b736eb75ea$
// $hash=6639552a1a56f42d7f73ffec99d28fb98173dbd1$
//
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
namespace {
@ -311,6 +312,10 @@ window_delegate_on_key_event(struct _cef_window_delegate_t* self,
DCHECK(event);
if (!event)
return 0;
if (!template_util::has_valid_size(event)) {
NOTREACHED() << "invalid event->[base.]size";
return 0;
}
// Translate param: event; type: struct_byref_const
CefKeyEvent eventObj;

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=fa04fba704658b02675380bd63d91005c6757d4e$
// $hash=66488e9aeed47b626c786d18e6e33a6d24cfef2c$
//
#include "include/capi/cef_app_capi.h"
@ -55,6 +55,7 @@
#include "libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h"
#include "libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/template_util.h"
#include "libcef_dll/transfer_util.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -68,6 +69,10 @@ CEF_EXPORT int cef_execute_process(const struct _cef_main_args_t* args,
DCHECK(args);
if (!args)
return 0;
if (!template_util::has_valid_size(args)) {
NOTREACHED() << "invalid args->[base.]size";
return 0;
}
// Unverified params: application, windows_sandbox_info
// Translate param: args; type: struct_byref_const
@ -93,10 +98,18 @@ CEF_EXPORT int cef_initialize(const struct _cef_main_args_t* args,
DCHECK(args);
if (!args)
return 0;
if (!template_util::has_valid_size(args)) {
NOTREACHED() << "invalid args->[base.]size";
return 0;
}
// Verify param: settings; type: struct_byref_const
DCHECK(settings);
if (!settings)
return 0;
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return 0;
}
// Unverified params: application, windows_sandbox_info
// Translate param: args; type: struct_byref_const
@ -415,6 +428,10 @@ CEF_EXPORT int cef_parse_url(const cef_string_t* url,
DCHECK(parts);
if (!parts)
return 0;
if (!template_util::has_valid_size(parts)) {
NOTREACHED() << "invalid parts->[base.]size";
return 0;
}
// Translate param: parts; type: struct_byref
CefURLParts partsObj;
@ -440,6 +457,10 @@ CEF_EXPORT int cef_create_url(const struct _cef_urlparts_t* parts,
DCHECK(parts);
if (!parts)
return 0;
if (!template_util::has_valid_size(parts)) {
NOTREACHED() << "invalid parts->[base.]size";
return 0;
}
// Verify param: url; type: string_byref
DCHECK(url);
if (!url)