From b920f0a2539d650d43ee9353dd989a2d1ee4e06e Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Fri, 12 Feb 2016 16:58:34 -0600 Subject: [PATCH] Bug 1240629. Add reftest. --- image/test/reftest/bmp/1240629-1.bmp | Bin 0 -> 68 bytes image/test/reftest/bmp/1240629-2.bmp | Bin 0 -> 68 bytes image/test/reftest/bmp/reftest.list | 8 ++++++++ 3 files changed, 8 insertions(+) create mode 100644 image/test/reftest/bmp/1240629-1.bmp create mode 100644 image/test/reftest/bmp/1240629-2.bmp diff --git a/image/test/reftest/bmp/1240629-1.bmp b/image/test/reftest/bmp/1240629-1.bmp new file mode 100644 index 0000000000000000000000000000000000000000..604d248e74ee795c2e4cc0baddce19c23b9020cf GIT binary patch literal 68 ucmZ?r^<#j5|3IJtWHJFUBN!_HNd^WEAYN_O?dx4#5(^f95dWcUpe_KDz6^Q* literal 0 HcmV?d00001 diff --git a/image/test/reftest/bmp/1240629-2.bmp b/image/test/reftest/bmp/1240629-2.bmp new file mode 100644 index 0000000000000000000000000000000000000000..e4fe80d595df8624f8faf7d1d04638025a2d2408 GIT binary patch literal 68 ycmZ?r^<#j5|Nj{nG=NMdAZ7$(1t7`5zyZXo&ANTPt4m_R0uTbI8Vvsb{|^8qEed=9 literal 0 HcmV?d00001 diff --git a/image/test/reftest/bmp/reftest.list b/image/test/reftest/bmp/reftest.list index 36b69385001..87183e6b2fa 100644 --- a/image/test/reftest/bmp/reftest.list +++ b/image/test/reftest/bmp/reftest.list @@ -6,3 +6,11 @@ include bmp-8bpp/reftest.list include bmp-24bpp/reftest.list include bmp-corrupted/reftest.list include bmpsuite/reftest.list + +# Two bmp files where the offset to the start of the image data in the file +# is past the end of the file. In 1240629-1.bmp the offset us uint32_max, +# so we are testing that we don't try to allocate a buffer that size (and +# fail on 32 bit platforms) and declare the image in error state. If in the +# future we decide that such bmps (offset past the end of the file) are +# invalid the test will still pass, but won't be testing much. +== 1240629-1.bmp 1240629-2.bmp