summaryrefslogtreecommitdiff
path: root/package/source/zipapi
AgeCommit message (Collapse)Author
2014-04-03package: sal_Bool->boolNoel Grandin
Change-Id: I66999e5d9f827650f4c1bccb14178f8fa8a57cbf
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-21coverity#982784 Unintentional integer overflowCaolán McNamara
Change-Id: Ib50e0987adf419ecdd569fc5dd5c8b2b1e246e2f
2014-03-21coverity#707964 Uninitialized scalar fieldCaolán McNamara
Change-Id: I051e5ae4200563426d810e9a4d94ab02fb8ccf51
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-17comphelper: sal_Bool -> boolStephan Bergmann
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-01-28bool improvementsStephan Bergmann
Change-Id: I5dfdb3a11737a2cb805ff44652c9ca502e5fc81b
2014-01-27Don't use OSL_LOG_PREFIX when throwing exceptions in non-debug builds.Jan Holesovsky
Using OSL_LOG_PREFIX in the exceptions is not a good idea; it blows the size of the string literals tremendously - full build path for every line that uses that, including the line. Let's not remove it for good, but hide it for non-debug builds (OSL_DEBUG_LEVEL == 0) so that anybody who would like to use this during debugging could still do (but I doubt it has any value for anybody). Change-Id: Icc8db95ae0862671a206e681f92c60cdf51ffc32
2013-12-17No need for implbase1.hxx to include XComponentContext.hppStephan Bergmann
...which it did unlike all the other implbaseN.hxx. Required lots of downstream clean-up, of course. Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-02WaE: unused variableTor Lillqvist
Change-Id: Iad493e5022a36895a30438340826ef4df50b2837
2013-07-31fdo#62475 removed pointless commentsJelle van der Waa
Change-Id: Ic3743e48ef9055933ff040c180561ef41b3a2990 Reviewed-on: https://gerrit.libreoffice.org/5174 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-05hair splitting on years in dates in ZIP structureLionel Elie Mamane
Change-Id: I9d7a6436e3df75eff592d19dcaca0f655ebf2160
2013-06-29remove OUString wrap for string literalsThomas Arnhold
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-30Accept even more corrupted zip documents as long as we can read themFridrich Štrba
Change-Id: I8d039664d6c33d978b9addc3f35cbeae86d6c710
2013-05-30Revert "Accept even more corrupted zip documents as long as we can read them"Fridrich Štrba
This reverts commit ef2ad0063a530aee186568579378a368180547a4.
2013-05-30Accept even more corrupted zip documents as long as we can read themFridrich Štrba
Change-Id: I8d039664d6c33d978b9addc3f35cbeae86d6c710
2013-05-08zlib: remove ExternalPackage_zlibMichael Stahl
Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-23coverity#704243 Logically dead codeJulien Nabet
Change-Id: Ie1140a90a6c9723582fa5e18ca0cf1dc1f918742 Reviewed-on: https://gerrit.libreoffice.org/2942 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-15Improve debug messagesStephan Bergmann
Some of those SAL_WARNs might actually better be SAL_INFOs; please change if they hit too often. Change-Id: I2a3b9bd485586b7878194f84bc734b54ce69bc06
2012-11-05fdo#46808, Adapt xml::crypto::SEInitializer UNO service to new styleNoel Grandin
Also create an NSSInitializer service IDL and split it's interfaces out from SEInitializer. It looks like this was the intention all along, but someone took a shortcut. Change-Id: I53ac1cb5d38b78b6718fe22c9666eae1f194a3b7
2012-10-01Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini
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-09-24fdo#49819, fdo#54609: Do not consider timestamp differences as corruptionFridrich Štrba
MSO 2010 can produce a files with different timestamps in the central directory entry and local file header Change-Id: Ic6fc0b2fad96eb30babdd7e6ef4a0175936da4c5
2012-09-21package: convert internal ZIP handling data-types to 64bitMichael Meeks
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-08-31package: kill RTL_CONSTASCII_USTRINGPARAM in zipapiMiklos Vajna
Change-Id: Ic53f613cfaa5bd4affd0c27b5ed4ed20536ee055
2012-08-28throw earlier on broken zip streamsCaolán McNamara
Change-Id: I0de705b4c6a9176e98baed21b2cd960d4d091563
2012-08-23Some clean up after previous commitStephan Bergmann
Change-Id: Ie419c769c5d661d51c1b43b9808791dcf9e1725c
2012-08-23fdo#46808, Shiny UNO, Use factory to create XSimpleFileAccess instancesNoel Grandin
Change-Id: I86e2a8873e5646abd340015f500bf9e872e8e6c5 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-07-29Use memcpy & memcmp insteadof rtl_copyMemory & rtl_compareMemory in packageArnaud Versini
Change-Id: Ia24406ff31949e00725db74bbe5b016894a22f50
2012-06-22re-base on ALv2 code.Michael Meeks
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-07nuke dead codeTakeshi Abe
Change-Id: Id9920ea7b82ea178e904f78bbd41ffc434813e0b
2012-05-28check key sizeCaolán McNamara
Change-Id: Ia909b0abb3ef84a9f0a14d42379f693ae9e70812
2012-04-13sigh, need a 64bit zlib too on windows, revertingCaolán McNamara
2012-04-13gbuildize internal zlibCaolán McNamara
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-02-17remove dodgy header-guardsCaolán McNamara
2012-02-16drop Z_PREFIX from internal zlib, makes building clucene much easierCaolán McNamara
2012-02-15use sal crc32 and skip cast frenzyCaolán McNamara
2012-02-15these were surely meant to be Z_PREFIX not ZLIB_PREFIXCaolán McNamara
seeing as Z_PREFIX is what we set in our internal zlib and one of these was ZLIB_PREFIXB anyway
2011-12-16Better fix for over-zealous Zip package consistency.Thorsten Behrens
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-15Revert "Fix n#653688"Stephan Bergmann
This reverts commit 309f56174aca6adca879f70958892492361dac6e. It caused password-protected documents to no longer work and made sc_subsequent_filters_test's testPassword fail.
2011-12-14Align comment with code for overly zealous check in Zip fix.Thorsten Behrens
2011-12-14Fix n#653688Thorsten Behrens
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-11-27remove include of pch header from packageNorbert Thiebaud
2011-09-30add mode-lines to .m files and last round of merged files, etc.Caolán McNamara
2011-08-26convert package to gbuildMatúš Kukan
2011-08-21undo anything not wizard related in the previous merge-commitNorbert Thiebaud