forked from osmocom/wireshark
Added a sanity check in output_fields_set_option.
Coverity 552. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36351 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
parent
c50452d27d
commit
0141fb2dcd
3
print.c
3
print.c
|
@ -1344,6 +1344,9 @@ gboolean output_fields_set_option(output_fields_t* info, gchar* option)
|
|||
return FALSE; /* Is this guarded against by option parsing? */
|
||||
}
|
||||
option_name = strtok(option,"=");
|
||||
if (!option_name) {
|
||||
return FALSE;
|
||||
}
|
||||
option_value = option + strlen(option_name) + 1;
|
||||
if(0 == strcmp(option_name, "header")) {
|
||||
switch(NULL == option_value ? '\0' : *option_value) {
|
||||
|
|
Loading…
Reference in New Issue