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:
Ivan Nardi
2022-04-18 20:54:13 +02:00
committed by GitHub
parent 8b2c9860be
commit 739dfc54b0
+1 -1
View File
@@ -166,7 +166,7 @@ static int krb_decode_asn1_int_type(struct ndpi_detection_module_struct *ndpi_st
*out = 0;
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;
}