office-gobmx/package
Michael Stahl 68688503df tdf#163818 package: fix recovery of zip entry local header with ...
... compressed size = 0.

The problem is that vector::data() on a vector of size 0 returns
nullptr, and osl_readFile into a nullptr buffer returns E_INVAL, which
causes an exception to be thrown.

Catch the exception, so that there is a chance to read the values from
the data descriptor instead.

(regression from commit 32cad89592
 and/or commit a6ad198d09)

Change-Id: I9b2d9a930997146faf224d8033955b142fe93f58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176289
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
(cherry picked from commit 80cda6954a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176387
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2024-11-16 08:21:27 +01:00
..
dtd
inc tdf#162866 package: fix loading AutoCorrect file with case-insensitive 2024-09-17 18:50:36 +02:00
qa tdf#163818 package: fix recovery of zip entry local header with ... 2024-11-16 08:21:27 +01:00
source tdf#163818 package: fix recovery of zip entry local header with ... 2024-11-16 08:21:27 +01:00
util
CppunitTest_package2_test.mk package: add unit tests with invalid zip packages 2024-09-19 13:55:34 +02:00
IwyuFilter_package.yaml
Library_package2.mk
Library_xstor.mk
Makefile
Module_package.mk
Package_dtd.mk
README.md

ZIP Support

Reading and writing ZIP files.