asn1: Make sure not to exceed buffer for binary OID
This commit is contained in:
@@ -139,7 +139,7 @@ chunk_t asn1_oid_from_string(char *str)
|
|||||||
while (enumerator->enumerate(enumerator, &str))
|
while (enumerator->enumerate(enumerator, &str))
|
||||||
{
|
{
|
||||||
val = strtoul(str, &end, 10);
|
val = strtoul(str, &end, 10);
|
||||||
if (end == str || pos > buf_len-4)
|
if (end == str || pos > buf_len-5)
|
||||||
{
|
{
|
||||||
pos = 0;
|
pos = 0;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user