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

Issues with newer glibc (strlcpy related) and warnings in date handling in headers.c #21

Open
carnil opened this issue May 21, 2024 · 0 comments

Comments

@carnil
Copy link

carnil commented May 21, 2024

In Debian downstream was reported the following:

https://bugs.debian.org/1068782

which will cause libesmtp and reverse depending packages to be removed, being a
release critical bug. Michael Hudson-Doyle reported the following:

Package: libesmtp
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu noble ubuntu-patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Apologies for submitting this as only one report. libesmtp was failing
on Ubuntu on armhf only because although strlcpy is now in glibc, the
declaration is only found if _DEFAULT_SOURCE or _BSD_SOURCE is defined.

While looking at this I saw some scary warnings about the date handling
in headers.c which I fixed the easy bits of.

In Ubuntu, the attached patch was applied to achieve the following:

  * d/patches/time64: cast time_t values to long long before passing to
    *printf functions (code storing time_t values in void* variables will
    still break in 2038).
  * d/patches/default-source: define _DEFAULT_SOURCE to get access to
    prototype of strlcpy.


Thanks for considering the patch.

Cheers,
mwh

and attached a patch to the bugreport covering those:
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1068782;filename=libesmtp_1.1.0-3.1ubuntu1.debdiff;msg=5

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

No branches or pull requests

1 participant