Commit Graph

254 Commits

Author SHA1 Message Date
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Fridrich Štrba
5db7ac2392 fdo#49819, fdo#54609: Do not consider timestamp differences as corruption
MSO 2010 can produce a files with different timestamps in the
central directory entry and local file header

Change-Id: Ic6fc0b2fad96eb30babdd7e6ef4a0175936da4c5
2012-09-24 09:27:15 +02:00
Michael Meeks
9b0198b244 package: convert internal ZIP handling data-types to 64bit
Prepare for a ZIP64 implementation.
Audit all "Size" property fetches through Anys.
Audit all uses of nSize, nCompressedSize, nOffset through the code.
Add FIXME64: comments to all points requiring future work.
2012-09-21 15:37:17 +01:00
Miklos Vajna
363c1edea6 package: kill RTL_CONSTASCII_USTRINGPARAM in zipapi
Change-Id: Ic53f613cfaa5bd4affd0c27b5ed4ed20536ee055
2012-08-31 18:03:22 +02:00
Caolán McNamara
e2f3312ea2 throw earlier on broken zip streams
Change-Id: I0de705b4c6a9176e98baed21b2cd960d4d091563
2012-08-28 13:26:11 +01:00
Stephan Bergmann
fcd990f208 Some clean up after previous commit
Change-Id: Ie419c769c5d661d51c1b43b9808791dcf9e1725c
2012-08-23 09:58:25 +02:00
Noel Grandin
3e7990faa4 fdo#46808, Shiny UNO, Use factory to create XSimpleFileAccess instances
Change-Id: I86e2a8873e5646abd340015f500bf9e872e8e6c5

Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-08-23 09:58:25 +02:00
Arnaud Versini
4be123fed2 Use memcpy & memcmp insteadof rtl_copyMemory & rtl_compareMemory in package
Change-Id: Ia24406ff31949e00725db74bbe5b016894a22f50
2012-07-29 15:01:55 +02:00
Michael Meeks
0ffc81ffdb re-base on ALv2 code. 2012-06-22 18:32:47 +01:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Takeshi Abe
eb0497307b nuke dead code
Change-Id: Id9920ea7b82ea178e904f78bbd41ffc434813e0b
2012-06-07 23:03:11 +09:00
Caolán McNamara
78f614e5ff check key size
Change-Id: Ia909b0abb3ef84a9f0a14d42379f693ae9e70812
2012-05-28 15:35:25 +01:00
Caolán McNamara
3934efe28c sigh, need a 64bit zlib too on windows, reverting 2012-04-13 14:06:55 +01:00
Caolán McNamara
452af5f452 gbuildize internal zlib
and stick headers into the solver in the same hierarchy as is "standard"
so we don't have to patch so much, similiarly rename to libz
2012-04-13 13:15:25 +01:00
Caolán McNamara
ccdb4d5c2c remove dodgy header-guards 2012-02-17 16:36:04 +00:00
Caolán McNamara
39481744b1 drop Z_PREFIX from internal zlib, makes building clucene much easier 2012-02-16 11:13:13 +00:00
Caolán McNamara
dcfc99705f use sal crc32 and skip cast frenzy 2012-02-15 16:08:46 +00:00
Caolán McNamara
372a0d505c these were surely meant to be Z_PREFIX not ZLIB_PREFIX
seeing as Z_PREFIX is what we set in our internal zlib
and one of these was ZLIB_PREFIXB anyway
2012-02-15 16:03:46 +00:00
Thorsten Behrens
d0ac36dd66 Better fix for over-zealous Zip package consistency.
Turns out our encrypted zip package code writes out mismatching
compression methods in central directory and local file headers -
so not only be lenient towards the apple bug (n#653688), but also
ours (i.e. keep not comparing nMethod with nHow).
2011-12-16 01:33:51 +01:00
Stephan Bergmann
82b71e04a1 Revert "Fix n#653688"
This reverts commit 309f56174a.  It
caused password-protected documents to no longer work and made
sc_subsequent_filters_test's testPassword fail.
2011-12-15 13:36:39 +01:00
Thorsten Behrens
3091d423cd Align comment with code for overly zealous check in Zip fix. 2011-12-14 14:42:03 +01:00
Thorsten Behrens
309f56174a Fix n#653688
Seems our Zip package is a bit too strict in checking archive
consistency - surely writing it out correctly is good, but rejecting
otherwise fine odf is not.
2011-12-14 13:31:55 +01:00
Norbert Thiebaud
bbe62f006e remove include of pch header from package 2011-11-27 13:16:23 -06:00
Caolán McNamara
1f5c696c37 add mode-lines to .m files and last round of merged files, etc. 2011-09-30 09:09:25 +01:00
Matúš Kukan
d0c301bba0 convert package to gbuild 2011-08-26 14:33:51 +02:00
Norbert Thiebaud
0d4720d1e1 undo anything not wizard related in the previous merge-commit 2011-08-21 18:12:16 -05:00
Jan Holesovsky
0e56df30f1 Namespace ZipUtils for the Inflater / Deflater classes. 2011-03-29 14:46:38 +02:00
Peter Jentsch
dfb4b89726 make Inflater and Deflater classes available for other packages to use
Currently, those are used within an extension function used by the
Word 2003 ML XSLT filters
2011-03-29 14:46:38 +02:00
Thomas Arnhold
5ad6920963 Move OSL_ENSURE(false,...) to OSL_FAIL(...) 2011-03-12 14:12:11 +01:00
Julien Nabet
221b85ed29 Remove "using namespace ::rtl" 2011-02-26 01:34:14 +01:00
Guillaume Poussel
8add752517 Remove bogus comments 2011-02-13 17:35:58 +01:00
Jan Holesovsky
18e39b8c4d Merge remote branch 'origin/libreoffice-3-3'
Conflicts:
	cui/source/tabpages/swpossizetabpage.cxx
2011-02-08 00:10:21 +01:00
Julien Nabet
ba11d549dc Some cppcheck cleaning 2011-02-06 23:16:23 +01:00
Thomas Arnhold
2945b56030 Clean up makefiles 2011-02-01 18:21:17 +01:00
Caolán McNamara
aaeacab461 WaE: gcc 4.6.0 various warnings 2011-01-24 14:47:02 +00:00
Thomas Arnhold
86f964d438 Remove doubled headers. 2011-01-21 18:32:36 +01:00
Petr Mladek
60ff78bdcf Micro optimization of the last commit
nBufSize was set by aBuffer.getLength() and had not been used in the end
2011-01-07 20:12:40 +01:00
Petr Mladek
7100d5b93b Merge commit 'ooo/OOO330_m19' into libreoffice-3-3 2011-01-07 20:06:19 +01:00
Christian Lippka ORACLE
f505d91021 impress208: #i115944# fixing large ooxml files 2011-01-05 12:10:11 +01:00
Christian Lippka ORACLE
3d6d4b7849 impress208: #i115944# fixing large ooxml files 2011-01-03 18:09:17 +01:00
Caolán McNamara
6b7556cd41 cppcheck: use prefix variants 2010-11-27 21:09:59 +00:00
Caolán McNamara
32346b8113 Resolves: rhbz#656191 Catch bad alloc and convert to ZipIOException
(cherry picked from commit 047a986e3af855cdb4c27274da5a10fb5da37fb6)
2010-11-25 17:47:06 +00:00
Caolán McNamara
f2f6bf1cbd Resolves: rhbz#656191 Catch bad alloc and convert to ZipIOException 2010-11-25 16:46:43 +00:00
Julien Nabet
648589a0bd RTL patch 2010-11-24 07:56:52 +01:00
pjacquod
3b51872f15 RTL_CONSTASCII_USTRINGPARAM components - zipapi
components/package/source/zipapi should be OK now
2010-11-17 16:39:20 +00:00
Caolán McNamara
b77940e5af add modelines to .hxx files as well 2010-10-28 15:48:02 +01:00
Norbert Thiebaud
d3d553e1ef merge vosremoval-reference.diff 2010-10-25 19:55:29 -05:00
Sebastian Spaeth
ead7290449 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:23 +02:00
Norbert Thiebaud
53f428d9bf merge vosremoval-diagnoses patch 2010-10-10 19:46:46 -05:00
Petr Mladek
d41279d586 more removed include guards using fixguard.py 2010-10-05 18:08:01 +02:00