Fix a global-buffer-overflow when loading Azure list (#1388)

This commit is contained in:
Ivan Nardi
2021-12-19 22:29:25 +01:00
committed by GitHub
parent 7aad97fffb
commit a16b4aa564
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -39285,4 +39285,7 @@ static ndpi_network ndpi_protocol_microsoft_azure_protocol_list[] = {
{ 0xD5C7B460 /* 213.199.180.96/27 */, 27, NDPI_PROTOCOL_MICROSOFT_AZURE },
{ 0xD5C7B4C0 /* 213.199.180.192/27 */, 27, NDPI_PROTOCOL_MICROSOFT_AZURE },
{ 0xD5C7B700 /* 213.199.183.0/24 */, 24, NDPI_PROTOCOL_MICROSOFT_AZURE },
/* End */
{ 0x0, 0, 0 }
};
+2 -1
View File
@@ -55,5 +55,6 @@ with open(sys.argv[1]) as fp:
if(ipaddr != ""):
print(" { 0x"+socket.inet_aton(ipaddr).hex().upper()+" /* "+ipaddr+"/"+cidr+" */, "+cidr+", "+proto+" },")
print(" /* End */")
print(" { 0x0, 0, 0 }")
print("};")