Commit fc756026 authored by Milan Crha's avatar Milan Crha

I#210 - Global buffer overflow in e_contact_check_attr_type_value_used()

Closes #210
parent 0b6ffe9a
......@@ -405,8 +405,12 @@ e_contact_check_attr_type_value_used (const AttrTypeValue *attr_type_values,
if (skip) {
pos = 0;
while (attr_type_values->type_values[ii] && attr_type_values->type_values[ii] != ';')
while (attr_type_values->type_values[ii] && attr_type_values->type_values[ii] != ';') {
/* To avoid buffer overflow, where the 'for' itself also ii++ */
if (!attr_type_values->type_values[ii + 1])
break;
ii++;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment