Commit 0eb054f
committed
chore: add test for reading tables with trailing garbage in names
disk3.img contains a label written with 512-byte sector size. disk4.img
contains a label with 4096-byte sector size. This test makes sure
the CRC checksum performs correctly when the partition table contains
such name fields. Both labels contains a partition with (intended)
trailing garbage in its name:
0000: af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 .=....rG .y=i.G}.
0010: 84 d6 89 47 76 ba 4e 45 b2 50 e0 65 2a 5a 4f 76 ...Gv.NE .P.e*ZOv
0020: 32 00 00 00 00 00 00 00 41 00 00 00 00 00 00 00 2....... A.......
0030: 00 00 00 00 00 00 00 00 4e 00 61 00 6d 00 65 00 ........ N.a.m.e.
0040: 20 00 77 00 69 00 74 00 68 00 20 00 67 00 61 00 .w.i.t. h. .g.a.
0050: 72 00 62 00 61 00 67 00 65 00 00 00 2d 00 3e 00 r.b.a.g. e...-.>.
0060: 20 00 67 00 61 00 72 00 62 00 61 00 67 00 65 00 .g.a.r. b.a.g.e.
0070: 20 00 68 00 65 00 72 00 65 00 21 00 00 00 00 00 .h.e.r. e.!.....1 parent 78e8c8f commit 0eb054f
3 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| 1370 | + | |
| 1371 | + | |
1370 | 1372 | | |
1371 | 1373 | | |
1372 | 1374 | | |
| |||
1924 | 1926 | | |
1925 | 1927 | | |
1926 | 1928 | | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
1927 | 1951 | | |
1928 | 1952 | | |
1929 | 1953 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments