forked from osmocom/wireshark
IRemUnknown: initialize remunk_remqueryinterface_call_t structure
Bug: 12841 Change-Id: I5916c30a18029d0872e0439d3393eaa6d27964dd Reviewed-on: https://code.wireshark.org/review/17589 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
fb85325d69
commit
f1a7497b53
|
@ -105,7 +105,7 @@ dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
|
|||
|
||||
/* limit the allocation to a reasonable size */
|
||||
if(u32ArraySize < 100) {
|
||||
call = (remunk_remqueryinterface_call_t *)wmem_alloc(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_guid_t));
|
||||
call = (remunk_remqueryinterface_call_t *)wmem_alloc0(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_guid_t));
|
||||
call->iid_count = u32ArraySize;
|
||||
call->iids = (e_guid_t *) (call+1);
|
||||
di->call_data->private_data = call;
|
||||
|
|
Loading…
Reference in New Issue