Skip to content

Commit

Permalink
Changed the header size of b/badheadersize.bmp to be 66 bytes
Browse files Browse the repository at this point in the history
The old 44-byte version could potentially be a valid OS/2v2 BMP.
  • Loading branch information
jsummers committed Apr 21, 2013
1 parent 86107f9 commit a5abb19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bmpsuite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ static int run(struct context *c)
c->filename = "b/badheadersize.bmp";
c->bpp = 1;
c->pal_entries = 2;
c->headersize = 44;
c->headersize = 66;
set_calculated_fields(c);
if(!make_bmp_file(c)) goto done;

Expand Down
2 changes: 1 addition & 1 deletion checksums
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ f9ac82a0bb4be51815f0a58391768ef0 *q/pal8oversizepal.bmp
f84bde9b40b9cb1453e85f95e121a02b *b/baddens1.bmp
93b6a1e893987cb3bc70c3178ba6c147 *b/baddens2.bmp
f39386d74b3a22c80b1c0125bd6fc8fd *b/badfilesize.bmp
1bb829795660e3df10699a411e120de8 *b/badheadersize.bmp
602ca8f666a99ff5249c6aba07e2a3f0 *b/badheadersize.bmp
622143f42eebdaf42dddceb59b4dddc8 *b/badpalettesize.bmp
4eb998a50578a58cc476743c13d7e210 *b/badplanes.bmp
1f267105340f36e889bbfab3b39906cd *b/badrle.bmp
Expand Down
4 changes: 2 additions & 2 deletions html/bmpsuite.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ <h1>BMP Suite Image List</h1>
<td>?</td>
<td class=b>N/A</td>
<td class=b><img src="../b/badheadersize.bmp"></td>
<td>Header size is 44 bytes, which is not one of the known sizes
(12, 40, 52, 56, 64, 108, 124).</td>
<td>Header size is 66 bytes, which is not a valid size for any known BMP
version.</td>
</tr>

<tr>
Expand Down

0 comments on commit a5abb19

Please sign in to comment.