push
github
libblkid: Check offset in LUKS2 header LUKS2 binary header contains offset field that describes where the header should be located. If this offset is not correct, blkid should tread this header as invalid. This patch fixes problem when both swap and LUKS headers are present (LUKS header was swapped out) and detected LUKS header is at a wrong offset. As LUKS has higher priority, it confuses detection. Signed-off-by: Milan Broz <gmazyland@gmail.com> (cherry picked from commit e49de00f4)
24675 of 53938 branches covered (45.75%)
Branch coverage included in aggregate %.
7 of 7 new or added lines in 1 file covered. (100.0%)
48 existing lines in 2 files now uncovered.45023 of 95653 relevant lines covered (47.07%)
15897.04 hits per line