From 8912b023de74c9762e1e00d14eee82c5ba6acabc Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Thu, 7 Feb 2019 18:29:31 +0000 Subject: [PATCH 1/6] better PNG files changed IDAT zlib header to max compression level, min decompression memory truncated a further 4 bytes (the zlib adler32 sum) add version of above with IDAT length header 6 instead of 10 same size but different error (both are ignored by most decoders anyway) --- png-transparent.png | Bin 67 -> 67 bytes png-truncated-lenfix.png | Bin 0 -> 47 bytes png-truncated.png | Bin 51 -> 47 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 png-truncated-lenfix.png diff --git a/png-transparent.png b/png-transparent.png index 91a99b94e23a00cc8133f22e3fe2a0b48a015808..0d9051a2639aef1758075de565089b58973f05dd 100644 GIT binary patch delta 31 lcmZ>Eo}ekkaXp!Vk%57gfpK|@={E)-@O1TaS?83{1ORm42kQU; delta 31 lcmZ>Eo}ejJF(;XUk%57gfsvO>cMAg$c)I$ztaD0e0sv+02EqUU diff --git a/png-truncated-lenfix.png b/png-truncated-lenfix.png new file mode 100644 index 0000000000000000000000000000000000000000..a2be149ae6f4f31c64c7f59ff67073744cfade1b GIT binary patch literal 47 ucmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}blHcuDF5RU7~Kp6m>p9b0h literal 0 HcmV?d00001 diff --git a/png-truncated.png b/png-truncated.png index 7d56ecadb4c3bc2b69b8a1313a7fc5194410c71a..c2ac23b6e2cb4e63be28c614c012e82994626fd4 100644 GIT binary patch delta 11 ScmXrkpP4o&ux* From 6bc4b3f8a32417128d0aa8890c90ba0b2f420ca1 Mon Sep 17 00:00:00 2001 From: lucy phipps Date: Tue, 20 Aug 2019 15:12:45 +0100 Subject: [PATCH 2/6] webp file was invalid with libwebp 1.0.3 new one is 30 bytes instead of 26, but it decodes at least hopefully a .gitattributes will fix it should probably check other formats too... --- .gitattributes | 1 + webp.webp | Bin 26 -> 30 bytes 2 files changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d96cc3e --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.webp binary diff --git a/webp.webp b/webp.webp index 2f8bf8fa1abcc8705d39a5815d7b0aad344c613f..f57b035465b374ba2c04f0ea64a5db6c1e817b62 100644 GIT binary patch literal 30 icmWIYbaNA9U| Date: Mon, 4 Nov 2019 06:30:34 +0000 Subject: [PATCH 3/6] a few alternate webp files webp-odd.webp: manually removed RIFF even-byte-count padding webp-vp8l.webp: the VP8L chunk without the RIFF, decodes with dwebp webp-vp8l-raw.webp: the data from said chunk, dwebp accepts this too --- webp-odd.webp | Bin 0 -> 29 bytes webp-vp8l-raw.webp | Bin 0 -> 9 bytes webp-vp8l.webp | Bin 0 -> 17 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 webp-odd.webp create mode 100644 webp-vp8l-raw.webp create mode 100644 webp-vp8l.webp diff --git a/webp-odd.webp b/webp-odd.webp new file mode 100644 index 0000000000000000000000000000000000000000..c1fd68c37f5a0c53a37f979b6446170ce70af230 GIT binary patch literal 29 hcmWIYbaNABU|yhz literal 0 HcmV?d00001 diff --git a/webp-vp8l-raw.webp b/webp-vp8l-raw.webp new file mode 100644 index 0000000000000000000000000000000000000000..ba66d42abf90ec20c45092437869107c4e7e51f6 GIT binary patch literal 9 OcmdOA0D_K=f9wDUYXU_8 literal 0 HcmV?d00001 diff --git a/webp-vp8l.webp b/webp-vp8l.webp new file mode 100644 index 0000000000000000000000000000000000000000..9a7c605ae29482fde9468232d9858304c00f527d GIT binary patch literal 17 WcmWFwu<+qzU|`S(Vup^6f9wDn4g+`q literal 0 HcmV?d00001 From bb1a7c32def4977a8ce8382edc7dbc37afada5f7 Mon Sep 17 00:00:00 2001 From: lucy phipps Date: Thu, 7 May 2020 05:54:29 +0100 Subject: [PATCH 4/6] c.c: implicit int why not use `-std=C90`? --- c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.c b/c.c index f7fb591..d2f56aa 100644 --- a/c.c +++ b/c.c @@ -1 +1 @@ -int main; +main; From 1d401a552bbcd74ed1b06c09ce05ab144bf1786e Mon Sep 17 00:00:00 2001 From: lucy phipps Date: Thu, 7 May 2020 05:57:15 +0100 Subject: [PATCH 5/6] c.c: no newline -std=c90 From 23eae789ec82b1d7e7ca594882121f1376ccbdb3 Mon Sep 17 00:00:00 2001 From: lucy phipps Date: Thu, 7 May 2020 06:12:34 +0100 Subject: [PATCH 6/6] c.c: no newline since we're apparently going by whether the compiler fails rather than standards, which, no matter what version you use, say main is a function (it's just a plain int here) and newline at EOF is required