mirror of git://git.sysmocom.de/ofono
smsutil: Check that udl is less than 140
This commit is contained in:
parent
beb4e2c71a
commit
a9cd641855
|
@ -1262,6 +1262,9 @@ static gboolean decode_submit(const unsigned char *pdu, int len,
|
|||
if ((len - offset) < expected)
|
||||
return FALSE;
|
||||
|
||||
if (expected > (int) sizeof(out->submit.ud))
|
||||
return FALSE;
|
||||
|
||||
memcpy(out->submit.ud, pdu+offset, expected);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue