From ada10a0ba4a9d61e10f6c2e098c68f088c235a86 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 27 Sep 2013 16:35:37 -0700 Subject: [PATCH 1/2] Circumvent classification of pngtest_bad.png as malware --- Tests/images/pngtest_bad.png.base64 | 151 ---------------------------- Tests/images/pngtest_bad.png.bin | Bin 0 -> 8573 bytes 2 files changed, 151 deletions(-) delete mode 100644 Tests/images/pngtest_bad.png.base64 create mode 100644 Tests/images/pngtest_bad.png.bin diff --git a/Tests/images/pngtest_bad.png.base64 b/Tests/images/pngtest_bad.png.base64 deleted file mode 100644 index 44e85d644..000000000 --- a/Tests/images/pngtest_bad.png.base64 +++ /dev/null @@ -1,151 +0,0 @@ -iVBORw0KGgoAAAANSUhEUgAAAFsAAABFCAMAAAFlM1rWAAACAHRSTlMAALGPC/xhBQAAAARzQklU -BQUFBU2lLfYAAAAGYktHRADgAOAAgJXNLyAAAAAJb0ZGcwAAAAAAAAAAAa0thlgAAAAscENBTGJv -Z3VzIHVuaXRzAAAAAAAAAP//AAJmb28vYmFyADEuMGUwADY1LjUzNWUzV0B7HAAAAAlwSFlzAAAL -EgAACxIB0t1+/AAAAAd0SU1FB8wGBxE6CI7/JnoAAAAJdEVYdFRpdGxlAFBOR9wBeTUAAB+3SURB -VHic7ZxPaGTJnec/OZOC3wMJIsCCF4YyxEAPPMEaUgdD5oIPueABFcwhBWuo2pvmMFB9U82p+7AD -5Zvq1nUYsOamOhiUQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB -QUFBMyPj/SLi9+f7+/4e/CFkWNjVz4+GK4C/ePXN9RsHPbsC+ORouMqVMJ46ALoAD4bFeeXr0bBn -GF+6pyLkAjzoFyujhOezsgOQK+n/BcDzSXmYK01hDErk+MnDoXehHgPEmH7toGdXVYizzZRCjJSu -JsugdJ6j4f7IVTV1jBgtKJHrKQH42DB1FQA9q/jwdNIBqD6Nx6N9ewLx9s0+GharB8Ni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1l57btv0Uxcv8bzkA4Uo0Mt -UKQxr3HA91qtBUSDbU2ZBbZH3ePUxSKOSVZiSY47qcimD7ZgQRiS/l+ypZl4SELqqnmca7NMd9EZ -Hqz9H24IVyP3c8UAAAAAAElFTkSuQmCC diff --git a/Tests/images/pngtest_bad.png.bin b/Tests/images/pngtest_bad.png.bin new file mode 100644 index 0000000000000000000000000000000000000000..07a74a104cd5bc71779be6fe61d614ae7d30c09e GIT binary patch literal 8573 zcmb7pg;!h86E9MSxN5WW3T_%Tyb!+qftSzZ`Nne+7iGXciX~G1%-jj*9(|;t8 z-TX?1{D)072*9)Z^*3WvK*R6TQ1MMA?ncJWv>R>ZW+907yY&C3ykS|p1Fl|f-Q3(W z-2%*YW~WBt!?*)mJMEn&A9T3(KXT~6$)SphdHEQ!*qBiK0hFUimteBwLz+`d$D~KD&mY{DFG8Evli({{IPvokZ`i2*yR8q2 z0ALqG#`!d-gp{O?pNo(|mUzQbG`r&6)Eucq7Nnw51skn#5v%Zur7Mg}uIJ4R()FnL z6kH*0v4MHqksTV$pPN3|!POc3!*!5SD4~cpw;fd)VG{BUmP$K3cxeYZKe9x>P`i7$ z8-Yb9;1Q$>brnf-br;tgGMvg7R=xiGNei2`L%Q`yMM&;Qasfdd7$i)~YhVB>8`EK- zO-``r7@MeiCnb5*LpWkpJ|RRNNvSZ36FT%-kE8VH`d{c6*q}Oae5o6qzejTEGX7rk zGRFuOLK65G4X#&bKTm6pnD}a9GWqJP!*iG!%i{EA zaGg$^wpDXT94FpWEjisnlhv6>v~&I=6%Fgdv<m^_?)S^hf1Ns=+H&^TH zca*IKe+-r#s1!XSj?8-tYYj6Mv*}I4$s25*`HSf+I@$c|X%N?>T-(g~m8pNY{X2T< zEp16B5GUQm-u9SuReH))AMHy2hX4fruHQfDRvoQ8%VjQ=t+el2Tc!sf3#w-`J59n3 zj^nMm_~pbAgmC{ARVcjgE&YYsCf|QyvjP?35U@yJ=q#s;8!Aq6IG*hDCvAu$sY5j^ ze;2gs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RbyNwpOILUQkMQW1=CV+@u^4MG5iXR#k<7S7NH@tW&6^>!B^-RwNEDtaSA$?TMPW!lw% gJ;vym%I=sQ2(?)*UArG0!opIPSCcE3G5-300BtGKl>h($ literal 0 HcmV?d00001 From fb80d5b2673cf24435157c31ce61010de4fa5ff8 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 27 Sep 2013 16:55:19 -0700 Subject: [PATCH 2/2] Circumvent classification of pngtest_bad.png as malware --- Tests/test_file_png.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py index 067ea5812..5ae726ad8 100644 --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -212,18 +212,14 @@ def test_roundtrip_text(): def test_scary(): # Check reading of evil PNG file. For information, see: # http://scary.beasts.org/security/CESA-2004-001.txt + # The first byte is removed from pngtest_bad.png + # to avoid classification as malware. - import base64 - file = "Tests/images/pngtest_bad.png.base64" - data = None + with open("Tests/images/pngtest_bad.png.bin", 'rb') as fd: + data = b'\x89' + fd.read() - if py3: - data = base64.decodebytes(open(file, 'rb').read()) - else: - data = base64.decodestring(open(file, 'rb').read()) - - file = BytesIO(data) - assert_exception(IOError, lambda: Image.open(file)) + pngfile = BytesIO(data) + assert_exception(IOError, lambda: Image.open(pngfile)) def test_trns_rgb(): # Check writing and reading of tRNS chunks for RGB images.