(Almost) infinite SNPP VIIRS stream
Background: https://ssec-sips.slack.com/archives/C03DXUC45/p1678981446059879
It appears the corrupted file in question goes to all zeros at byte offset ~= 1532492265. The zeros seem to cause the packet stream to produce packets with size 7, which the CCSDS primary header size plus the mandatory 1 byte for user data.
I think it might be wise to perform some sort of validation to make sure the primary header is not all zeros, perhaps by just decoding the entire header as a long and checking if it's 0. If it is bail.