bb3715b628
ofz#967 optimize tiff import if line is the same as previous line
...
Change-Id: Ided61679a579a73481320f85c05b03e3ce3d762a
2017-03-30 21:14:48 +01:00
b018021d5a
ofz: timeout on clamping big double to 0..360
...
Change-Id: Ica2aedc5275e5f523302f5793e3f3816b3ff65b4
2017-02-28 20:47:57 +00:00
e57ca02849
Remove dynamic exception specifications
...
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html >
"Dynamic Exception Specifications" for details.
Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly). The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually). There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).
Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code. Missing @throws
documentation has not been applied in such manual clean-up.
Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
2017-01-26 12:54:43 +00:00
7420e35090
guard against self-recursive GetBoundingBox
...
Change-Id: If33f0e5e326604bf731d6ad50644e3a0b24ccf51
2017-01-13 15:13:37 +00:00
57779b5f3a
avoid infinite loops in dxf rendering
...
Change-Id: Id2eb5540241f0792cde35c444fc2c0c5b7778353
2017-01-13 13:21:07 +00:00
81ce0f3772
filter: fix loplugin:cppunitassertequals warnings
...
Change-Id: Ibb80377a581d70501dbd243307e883057508e67f
2016-09-16 10:55:36 +02:00
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
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
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
3cdda9af2c
loplugin:nullptr (automatic rewrite)
...
Change-Id: I61e494952df8cc40fff3ccad0936adf06035dbeb
2015-11-10 10:31:25 +01:00
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
b36963c0a6
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
...
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
b43e03353a
check stream status more often
...
Change-Id: I233c2fff9c06a81117f8114ccee83b53ea4026db
2015-09-11 15:38:39 +01:00
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