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

openntpd: fix integer overflow on i686 #45993

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

michaellass
Copy link
Contributor

Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture, (i686)

Change description

On i686, time_t is a 32 bit integer. In openntpd, an addition of two time_ts is performed, leading to an integer overflow. This code is part of the constraints logic of openntpd. When the bug triggers, all time sources will be marked invalid.

Upstream pull request: openntpd-portable/openntpd-portable#74

@leahneukirchen leahneukirchen merged commit 64e827d into void-linux:master Sep 9, 2023
8 checks passed
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.

2 participants