Miklos Vajna
81ce0f3772
filter: fix loplugin:cppunitassertequals warnings
...
Change-Id: Ibb80377a581d70501dbd243307e883057508e67f
2016-09-16 10:55:36 +02:00
Stephan Bergmann
60b1c95cc4
Extract Directories from BootstrapFixtureBase
...
(as some tests derive from the latter only for the Directories part, not for the
setUp/tearDown overrides: those tests will be cleaned up next)
Change-Id: Ib6b78eea868b8bc21d4cc6e8fd9e1d025deca05f
Reviewed-on: https://gerrit.libreoffice.org/23078
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
2016-03-10 08:04:40 +00:00
Noel Grandin
70f87284c6
improve defaultparams loplugin
...
to catch calling params with defaults like "= OUSString()"
Change-Id: Iad060e318ed492c22f8be44e326174fe6d28fff9
Reviewed-on: https://gerrit.libreoffice.org/22932
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2016-03-07 05:57:17 +00:00
Michael Stahl
18b0343010
RC4 encrypt some WMF and TIFF test files
...
Reportedly some virus scanners warn about some of these files.
Use a new "RC4" name prefix since the files don't come from external
sources.
http://permalink.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/69200
Change-Id: I6d4cff2fdd5c0134bf2c77558ea09b3196b39be9
2016-01-05 13:33:56 +01:00
Stephan Bergmann
3cdda9af2c
loplugin:nullptr (automatic rewrite)
...
Change-Id: I61e494952df8cc40fff3ccad0936adf06035dbeb
2015-11-10 10:31:25 +01:00
Oliver Specht
7f533e6cda
merged graphic import/export into a single library
...
instead of egi, eme, epb, epg, epp, eps, ept, era, eti, exp,
icd, idx, ime, ipb, ipd, ips, ipt, ipx, ira, itg, iti,
there is now one graphic import export lib (gie)
Change-Id: I20c0dd94e5857bb6e2e8cc8ac175ff500c6bbdfc
Reviewed-on: https://gerrit.libreoffice.org/19756
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Oliver Specht <oliver.specht@cib.de >
2015-11-06 11:42:36 +00:00
Stephan Bergmann
b36963c0a6
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
...
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
Caolán McNamara
b43e03353a
check stream status more often
...
Change-Id: I233c2fff9c06a81117f8114ccee83b53ea4026db
2015-09-11 15:38:39 +01:00
Caolán McNamara
b02f1c58e7
fix size check related hang
...
Change-Id: I3e8aa5c48ba802cd363688502b44e27bfdf67f01
2015-09-10 09:25:11 +01:00
Caolán McNamara
ad6d83defb
check for legal field sizes before reading
...
Change-Id: I3cdb647e1a057be5bb4b32d119ee5bcbbedf7473
2015-08-31 11:22:45 +01:00
Caolán McNamara
a8fe085f97
check stream status
...
Change-Id: I65ed5979d35d8739367294a71620782b832cfd71
2015-08-31 09:57:00 +01:00
Caolán McNamara
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
Caolán McNamara
6b82437dca
detect and reject loop in tif
...
Change-Id: I77d315fa432a3eb1a65539489a2ba6da8508b283
2015-08-24 15:32:42 +01:00
Zolnai Tamás
3f339c5e77
Better to call this msfilter test
...
Change-Id: I2abd6aedb16303d8988c17e7204c9607bf8336a3
2015-08-23 19:10:41 +02:00
Takeshi Abe
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
Caolán McNamara
34d062147c
reject invalid tiff dimensions
...
Change-Id: I64e77f12cb016a7f4a9d21c732aaeaae7959da76
2015-07-21 10:12:41 +01:00
Caolán McNamara
97a0e7558b
bail if offsets are past eof
...
Change-Id: I4a8e78231befff498894ec92a1f38af206e13129
2015-07-20 12:30:28 +01:00
Caolán McNamara
8eaef6b521
fail on short read
...
Change-Id: I7215cf8d8b1e4a4156c87507018de3c2b7ed08d8
2015-07-20 11:46:21 +01:00
Caolán McNamara
6964f67d0d
don't hang on a bad ReadCodeAndDecode
...
Change-Id: I999012d428fa84e21fe9e9f851a016eacc96a686
2015-07-20 11:24:42 +01:00
Caolán McNamara
c02e798749
ensure loop ends eventually
...
Change-Id: I318385286fcc27ffb2d938237d83e793564d2525
2015-07-20 10:28:30 +01:00
Caolán McNamara
dcbbe7741a
final check np bounds
...
Change-Id: I9213bb2cc059e05e286598edac03bd72c84db876
2015-07-20 09:25:36 +01:00
Caolán McNamara
33d43205c3
test that nNumStripByteCounts value is within bounds of file
...
Change-Id: If119628d7f510a7db30ed2180111063781cde887
2015-07-20 09:21:35 +01:00
Caolán McNamara
bca4d6f896
check np bounds yet again
...
Change-Id: Id3f6fdc0ebed9711acec5d71f404e7a6072b765c
2015-07-20 08:51:30 +01:00
Caolán McNamara
5d32a4ac5c
reduce scope, etc, don't loop endlessly
...
Change-Id: I86e4e94392527b5faf5d9cdb4251853f35813f4e
2015-07-20 08:38:12 +01:00
David Tardon
3f0677b86f
add a test image
...
Change-Id: Ibd30ddc9c4a0e1ca440d0b62635cfab3f3ab8235
2015-07-20 08:50:53 +02:00
Caolán McNamara
fcdddbd30a
check np bounds again
...
Change-Id: I0fb61954b2eaf0c015d7bdefe9f03bd459b31501
2015-07-19 21:33:37 +01:00
Caolán McNamara
be4e1141be
check np bounds
...
Change-Id: Id16ae9325f3c67792941b9c88d83435aa98282ca
2015-07-19 21:26:32 +01:00
Caolán McNamara
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
Caolán McNamara
6a1f31898d
in remainingSize consider that its is possible to seek past the end
...
Change-Id: I1652244d5515629f1cd8f15f4c5b15f139dba0aa
2015-07-17 11:22:12 +01:00
Caolán McNamara
c9ba7a2a4d
don't loop forever if pcx has short read
...
Change-Id: I638792417924bcb8e48995f4e789f84a2cbf4757
2015-07-17 11:22:11 +01:00
Caolán McNamara
64cc2d775c
rename test case
...
Change-Id: I76d35955a1d024d05a94ffdfdcf8e4076de24975
2015-07-17 10:00:45 +01:00
Caolán McNamara
49bf2c6700
detect another loop in tif format
...
Change-Id: I950f751277d9080b4fc00c38f63453cce81bcc32
2015-07-17 10:00:45 +01:00
Caolán McNamara
feedb95731
test that nNumStripOffsets value is within bounds of file
...
Change-Id: I1483ea3671420be53496888892374641e10b344d
2015-07-17 09:47:43 +01:00
Caolán McNamara
290465b0ef
detect loop in tif format
...
Change-Id: I27645566cd9fc0ac8cf753f0217ae6cf0fa9929e
2015-07-17 09:29:14 +01:00
Caolán McNamara
bf02304a0e
min size of eps for a preview is 32
...
Change-Id: Icb82d9dd0a3918f2bdc4cb768c566774cd0d8ac4
2015-07-16 16:32:11 +01:00
Caolán McNamara
cf4159e16c
exception on div by 0
...
Change-Id: Id33d6a5e3df5812babd28ebfc65b95ce97219ad3
2015-07-16 10:25:20 +01:00
Caolán McNamara
5c83253258
don't hang if at end of stream
...
Change-Id: I497a30041ec667237c2aa64963dcefb67753e87c
2015-07-15 21:16:33 +01:00
Caolán McNamara
8547c336b3
WaE: C2220
...
Change-Id: Ibf9fa7ffc3beb237a470952c265fb1bce313a08a
2015-07-15 21:16:08 +01:00
Caolán McNamara
dc71a72753
bump size type
...
Change-Id: I2c32c253499a3efb22a3312ed1f0a608649ce124
2015-07-15 20:44:10 +01:00
Caolán McNamara
89857aacac
tools polygons limited to 16bit indexes
...
Change-Id: Ib0f727a3681492c15b807ca159d8bf7675ee8f29
2015-07-15 20:33:08 +01:00
Caolán McNamara
15dfcb7f46
don't hang with 0 len causing no progression
...
Change-Id: Ie553dab291c7bfbde033d89b84159aff6b42a160
2015-07-15 20:03:34 +01:00
Caolán McNamara
b8637e67d6
avoid hang in short pbm
...
Change-Id: I9b7f0832a4dc231e1e8f963858c155e3cd392667
2015-07-15 19:46:48 +01:00
Caolán McNamara
adfa89b5ff
check stream state more often for failures
...
Change-Id: Ie45d858021c3123ec21829cbf4742cf30ce46665
2015-07-15 13:01:38 +01:00
Caolán McNamara
8a60e78769
file format documentation states these are signed
...
Change-Id: Iaca58dda19d24a767333ff642759414951a03e6d
2015-07-15 11:04:16 +01:00
Zolnai Tamás
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
Noel Grandin
ad0c5e6c66
convert META_*_ACTION constants to scoped enum
...
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
2015-05-15 10:05:03 +02:00
Noel Grandin
48bb2913a7
convert SFX_FILTER_ constants to enum class
...
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-19 08:25:03 +02:00
Noel Grandin
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
Noel Grandin
7f8f277b94
fdo#84938: convert STREAM_ #defines to 'enum class'
...
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
Caolán McNamara
eb6d27321d
afl: divide-by-zero
...
Change-Id: Ided311873f654c0f40dae57c8876a6412ee97d3e
2014-11-17 15:22:08 +00:00