Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to minizip 1.2.13 #515

Merged
merged 3 commits into from
Jan 10, 2023
Merged

Conversation

klemensn
Copy link
Contributor

https://github.com/madler/zlib/releases/tag/v1.2.13

Noticed by building libdigidocpp 3.14.11 on OpenBSD where we still have
to pass CFLAGS += -DIOAPI_NO_64 as off_t is always 64-bit.

1.2.13 contains a fix for this but libdigidocpp would fail to build, i.e.
it still ships an old version.

https://github.com/madler/zlib/releases/tag/v1.2.13

Noticed by building libdigidocpp 3.14.11 on OpenBSD where we still have
to pass `CFLAGS += -DIOAPI_NO_64` as off_t is always 64-bit.

1.2.13 contains a fix for this but libdigidocpp would fail to build, i.e.
it still ships an old version.
@klemensn klemensn marked this pull request as draft December 22, 2022 09:19
@klemensn
Copy link
Contributor Author

But now the build fails, I'll update with a fix shortly.

zip.h's `struct zip_fileinfo` member `tm_zip tmz_date` changed member
types from to `int`, so drop the cast as all `struct tm` members are
`int` already.

Fixes the following:
```
/usr/ports/pobj/libdigidocpp-3.14.11/libdigidocpp-3.14.11/src/util/ZipSerialize.cpp:186:11: error: non-constant-expression cannot be narrowed from type 'uInt' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
        { uInt(time.tm_sec), uInt(time.tm_min), uInt(time.tm_hour),
          ^~~~~~~~~~~~~~~~~
/usr/ports/pobj/libdigidocpp-3.14.11/libdigidocpp-3.14.11/src/util/ZipSerialize.cpp:186:11: note: insert an explicit cast to silence this issue
        { uInt(time.tm_sec), uInt(time.tm_min), uInt(time.tm_hour),
          ^~~~~~~~~~~~~~~~~
          static_cast<int>()
```
@klemensn klemensn marked this pull request as ready for review December 22, 2022 09:34
@kristelmerilain kristelmerilain requested a review from metsma January 4, 2023 17:32
src/minizip/unzip.c Outdated Show resolved Hide resolved
@klemensn klemensn requested a review from metsma January 4, 2023 19:49
Spotted by Raul Metsma during review.
@kristelmerilain kristelmerilain merged commit dfa4bc5 into open-eid:master Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants