Kerberos: fix Undefined-shift error (#1516)
Similar to the error fixed in 4775be3d
Found by oss-fuzz.
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46713
This commit is contained in:
@@ -166,7 +166,7 @@ static int krb_decode_asn1_int_type(struct ndpi_detection_module_struct *ndpi_st
|
|||||||
*out = 0;
|
*out = 0;
|
||||||
for (; i < length; ++i)
|
for (; i < length; ++i)
|
||||||
{
|
{
|
||||||
*out |= packet->payload[*kasn1_offset + i] << (length - i - 1) * 8;
|
*out |= (unsigned int)packet->payload[*kasn1_offset + i] << (length - i - 1) * 8;
|
||||||
}
|
}
|
||||||
*kasn1_offset += i;
|
*kasn1_offset += i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user