make sure that samples fit in packets and records fit in samples
(prevents segfaults on malformed sFlow data)