Jef Driesen 4db8535e39 Use the extended sample length stored in the data.
Currently, the buffer overflow checks take into account the size of the
entire dive. But since the length of the extended sample is stored in
the data, we can actually check for overflows in each sample. The main
benefit is that errors will be caught much earlier now.

An additional advantage is that we can now easily skip any remaining
sample bytes. Normally such bytes are not present, unless a firmware
update introduces a new feature which our parser doesn't support yet.
2014-05-06 11:25:46 +02:00
..
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2012-06-21 21:39:24 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-02-27 09:56:40 +01:00
2014-04-22 14:29:58 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-01-26 21:51:33 +01:00
2014-03-14 09:44:10 +01:00
2013-08-22 09:15:55 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2012-06-21 21:42:37 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-28 12:38:24 +01:00
2013-05-13 19:18:08 +02:00
2013-05-13 19:18:08 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00