Commit Graph

96 Commits

Author SHA1 Message Date
b02f1c58e7 fix size check related hang
Change-Id: I3e8aa5c48ba802cd363688502b44e27bfdf67f01
2015-09-10 09:25:11 +01:00
ad6d83defb check for legal field sizes before reading
Change-Id: I3cdb647e1a057be5bb4b32d119ee5bcbbedf7473
2015-08-31 11:22:45 +01:00
a8fe085f97 check stream status
Change-Id: I65ed5979d35d8739367294a71620782b832cfd71
2015-08-31 09:57:00 +01:00
0a76c1fd68 in reality we are limited to max sal_Int32 here
so accept that and test if the values were accepted or limited

Change-Id: Iaed5ebc2f12b52055506147c71117a2ad88d28ac
2015-08-24 20:51:13 +01:00
6b82437dca detect and reject loop in tif
Change-Id: I77d315fa432a3eb1a65539489a2ba6da8508b283
2015-08-24 15:32:42 +01:00
3f339c5e77 Better to call this msfilter test
Change-Id: I2abd6aedb16303d8988c17e7204c9607bf8336a3
2015-08-23 19:10:41 +02:00
678bb5135b tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants, for filter.

Change-Id: I30dcd7cfb3e484034f6cceceb1ff7cd9d3f4b7a6
Reviewed-on: https://gerrit.libreoffice.org/17585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-11 07:06:51 +00:00
34d062147c reject invalid tiff dimensions
Change-Id: I64e77f12cb016a7f4a9d21c732aaeaae7959da76
2015-07-21 10:12:41 +01:00
97a0e7558b bail if offsets are past eof
Change-Id: I4a8e78231befff498894ec92a1f38af206e13129
2015-07-20 12:30:28 +01:00
8eaef6b521 fail on short read
Change-Id: I7215cf8d8b1e4a4156c87507018de3c2b7ed08d8
2015-07-20 11:46:21 +01:00
6964f67d0d don't hang on a bad ReadCodeAndDecode
Change-Id: I999012d428fa84e21fe9e9f851a016eacc96a686
2015-07-20 11:24:42 +01:00
c02e798749 ensure loop ends eventually
Change-Id: I318385286fcc27ffb2d938237d83e793564d2525
2015-07-20 10:28:30 +01:00
dcbbe7741a final check np bounds
Change-Id: I9213bb2cc059e05e286598edac03bd72c84db876
2015-07-20 09:25:36 +01:00
33d43205c3 test that nNumStripByteCounts value is within bounds of file
Change-Id: If119628d7f510a7db30ed2180111063781cde887
2015-07-20 09:21:35 +01:00
bca4d6f896 check np bounds yet again
Change-Id: Id3f6fdc0ebed9711acec5d71f404e7a6072b765c
2015-07-20 08:51:30 +01:00
5d32a4ac5c reduce scope, etc, don't loop endlessly
Change-Id: I86e4e94392527b5faf5d9cdb4251853f35813f4e
2015-07-20 08:38:12 +01:00
3f0677b86f add a test image
Change-Id: Ibd30ddc9c4a0e1ca440d0b62635cfab3f3ab8235
2015-07-20 08:50:53 +02:00
fcdddbd30a check np bounds again
Change-Id: I0fb61954b2eaf0c015d7bdefe9f03bd459b31501
2015-07-19 21:33:37 +01:00
be4e1141be check np bounds
Change-Id: Id16ae9325f3c67792941b9c88d83435aa98282ca
2015-07-19 21:26:32 +01:00
80c591ea9c in reality we are limited to max sal_Int32 here
so accept that and test if the values were accepted or limited

Change-Id: I599cf8065a6f8786d380fdba03135857766770f3
2015-07-19 21:13:37 +01:00
6a1f31898d in remainingSize consider that its is possible to seek past the end
Change-Id: I1652244d5515629f1cd8f15f4c5b15f139dba0aa
2015-07-17 11:22:12 +01:00
c9ba7a2a4d don't loop forever if pcx has short read
Change-Id: I638792417924bcb8e48995f4e789f84a2cbf4757
2015-07-17 11:22:11 +01:00
64cc2d775c rename test case
Change-Id: I76d35955a1d024d05a94ffdfdcf8e4076de24975
2015-07-17 10:00:45 +01:00
49bf2c6700 detect another loop in tif format
Change-Id: I950f751277d9080b4fc00c38f63453cce81bcc32
2015-07-17 10:00:45 +01:00
feedb95731 test that nNumStripOffsets value is within bounds of file
Change-Id: I1483ea3671420be53496888892374641e10b344d
2015-07-17 09:47:43 +01:00
290465b0ef detect loop in tif format
Change-Id: I27645566cd9fc0ac8cf753f0217ae6cf0fa9929e
2015-07-17 09:29:14 +01:00
bf02304a0e min size of eps for a preview is 32
Change-Id: Icb82d9dd0a3918f2bdc4cb768c566774cd0d8ac4
2015-07-16 16:32:11 +01:00
cf4159e16c exception on div by 0
Change-Id: Id33d6a5e3df5812babd28ebfc65b95ce97219ad3
2015-07-16 10:25:20 +01:00
5c83253258 don't hang if at end of stream
Change-Id: I497a30041ec667237c2aa64963dcefb67753e87c
2015-07-15 21:16:33 +01:00
8547c336b3 WaE: C2220
Change-Id: Ibf9fa7ffc3beb237a470952c265fb1bce313a08a
2015-07-15 21:16:08 +01:00
dc71a72753 bump size type
Change-Id: I2c32c253499a3efb22a3312ed1f0a608649ce124
2015-07-15 20:44:10 +01:00
89857aacac tools polygons limited to 16bit indexes
Change-Id: Ib0f727a3681492c15b807ca159d8bf7675ee8f29
2015-07-15 20:33:08 +01:00
15dfcb7f46 don't hang with 0 len causing no progression
Change-Id: Ie553dab291c7bfbde033d89b84159aff6b42a160
2015-07-15 20:03:34 +01:00
b8637e67d6 avoid hang in short pbm
Change-Id: I9b7f0832a4dc231e1e8f963858c155e3cd392667
2015-07-15 19:46:48 +01:00
adfa89b5ff check stream state more often for failures
Change-Id: Ie45d858021c3123ec21829cbf4742cf30ce46665
2015-07-15 13:01:38 +01:00
8a60e78769 file format documentation states these are signed
Change-Id: Iaca58dda19d24a767333ff642759414951a03e6d
2015-07-15 11:04:16 +01:00
16f9cf57e2 tdf#92471: Improve color conversion to MSO highlighting
The simple color distance on RGB color space is not good enough.
It leads to a better result if we use the scheme of the primary
colors.
This method works well with MSO highlighting color palette, but
not neccessarily in general. In highlighting palette light and
dark variant of the same color type (e.g. blue and light blue) has
the exactly same scheme.

Change-Id: Ied08b4c388b8020326709d01d2de290afdd9d77b
2015-07-14 10:36:18 +02:00
ad0c5e6c66 convert META_*_ACTION constants to scoped enum
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
2015-05-15 10:05:03 +02:00
48bb2913a7 convert SFX_FILTER_ constants to enum class
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-19 08:25:03 +02:00
fb14be5f8f create new 'enum class' SotClipboardFormatId to unify types
of which there are several.

There are some issues here I am unsure of
- the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids
  Perhaps I should change them to use the common values and create new enum values where necessary?
- the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff
   numeric values to the underlying code, but perhaps further fixing is necessary?

Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-18 14:23:50 +02:00
7f8f277b94 fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
eb6d27321d afl: divide-by-zero
Change-Id: Ided311873f654c0f40dae57c8876a6412ee97d3e
2014-11-17 15:22:08 +00:00
a5ad25c447 update suffixes in .gitignore for filters
Change-Id: Ibf6093946ef1dec1a2ba202917da9e4562c10d3e
2014-11-06 14:48:03 +00:00
31bfb20c81 add a build-time regression test for pcd file format
Change-Id: Ie413372ab1cfc7e38570fdf65c6daca8c2cc426b
2014-11-06 14:48:03 +00:00
366c658c77 add CVE-2013-4979 test
Change-Id: I54025f46394ec1b16443ba75ff9edf9d8e1f6738
2014-10-20 10:57:21 +01:00
0694856737 add eps import regression test
Change-Id: Iba88c7e54ba83132a859124d51f88be72cb3e3e1
2014-10-20 10:57:20 +01:00
0445a0ea1b add a regression test for .met files
OS/2 Metafile Format

aka

Presentation Manager Metafile File Format

this format appears to not to have a mime-type

Change-Id: I8b2356fb42272a6e0550abf09f46b051d22b64a5
2014-10-18 10:45:29 +01:00
3d85ec29dd filter: stop leaking temp files in xsltfilter test
Change-Id: Icefec168910ba0b059f4b1887ec67cce8505ffd6
2014-10-11 00:28:47 +02:00
ec14701234 We require OS X SDK 10.8 or newer now
Change-Id: I68eee76c8710c89af8e3c1e1006345f908923ece
2014-10-01 17:27:59 +03:00
1b7d2016f3 add test-case for CVE-2010-1681
Change-Id: I2ff8ee15fb7416ea5c8b7a8101ec12c8d371734b
2014-08-09 13:35:47 +01:00