forked from osmocom/wireshark
IrDA: always initialize buffer before accessing it
Bug: 10716 Change-Id: I8e54f750b70076758d5fd0d7f35f9c782f5d0bf9 Reviewed-on: https://code.wireshark.org/review/5398 Tested-by: Pascal Quantin <pascal.quantin@gmail.com> 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
bcc4c7fad6
commit
f7f19f0291
|
@ -746,6 +746,9 @@ static void dissect_iap_result(tvbuff_t* tvb, packet_info* pinfo, proto_tree* ro
|
|||
string = tvb_get_string(wmem_packet_scope(), tvb, offset + 9, n);
|
||||
g_snprintf(buf, 300, ", \"%s\"", string);
|
||||
break;
|
||||
default:
|
||||
buf[0] = '\0';
|
||||
break;
|
||||
}
|
||||
col_append_str(pinfo->cinfo, COL_INFO, buf);
|
||||
if (tvb_get_ntohs(tvb, offset + 2) > 1)
|
||||
|
|
Loading…
Reference in New Issue