From: Denis Kenzior Date: Thu, 31 Mar 2011 19:00:49 +0000 (-0500) Subject: stkutil: add one more sanity check X-Git-Tag: 0.46~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f58c3614aa229f62663634f2235804f4ead54251;p=platform%2Fupstream%2Fofono.git stkutil: add one more sanity check --- diff --git a/src/stkutil.c b/src/stkutil.c index fab52a1..7299fb5 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -1646,7 +1646,7 @@ static gboolean parse_dataobj_network_access_name( while (len) { label_size = *data; - if (label_size > (len - 1)) + if (label_size == 0 || label_size > (len - 1)) return FALSE; memcpy(decoded_apn + offset, data + 1, label_size);