mirror of git://git.sysmocom.de/ofono
stkutil: add one more sanity check
This commit is contained in:
parent
c79c3c0e54
commit
f58c3614aa
|
@ -1646,7 +1646,7 @@ static gboolean parse_dataobj_network_access_name(
|
||||||
while (len) {
|
while (len) {
|
||||||
label_size = *data;
|
label_size = *data;
|
||||||
|
|
||||||
if (label_size > (len - 1))
|
if (label_size == 0 || label_size > (len - 1))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
memcpy(decoded_apn + offset, data + 1, label_size);
|
memcpy(decoded_apn + offset, data + 1, label_size);
|
||||||
|
|
Loading…
Reference in New Issue