Merge branch 'master' into mas-i115-simplettcache

This commit is contained in:
Martin Sumner 2018-04-05 09:14:02 +01:00
commit 54d81220b2

View file

@ -1526,7 +1526,7 @@ crc_check_slot(FullBin) ->
PosBL:32/integer,
CRC32H:32/integer,
Rest/binary>> = FullBin,
PosBL0 = min(PosBL, byte_size(FullBin) - 3),
PosBL0 = min(PosBL, byte_size(FullBin) - 12),
% If the position has been bit-flipped to beyond the maximum paossible
% length, use the maximum possible length
<<Header:PosBL0/binary, Blocks/binary>> = Rest,