Merge "Enhance size check in readPacketFilter to prevent overflow" into main