Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
pacemaker.26413
0001-Fix-iso8601-prevent-sec-overrun-before-add...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-iso8601-prevent-sec-overrun-before-adding-up-as-.patch of Package pacemaker.26413
From 7e98de78c289402380dee67d543eee133cd1e699 Mon Sep 17 00:00:00 2001 From: Klaus Wenninger <klaus.wenninger@aon.at> Date: Tue, 16 Feb 2021 10:16:44 +0100 Subject: [PATCH] Fix: iso8601: prevent sec overrun before adding up as long long --- lib/common/iso8601.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: pacemaker-2.0.1+20190417.13d370ca9/lib/common/iso8601.c =================================================================== --- pacemaker-2.0.1+20190417.13d370ca9.orig/lib/common/iso8601.c +++ pacemaker-2.0.1+20190417.13d370ca9/lib/common/iso8601.c @@ -261,7 +261,7 @@ crm_time_get_seconds(crm_time_t * dt) utc = crm_get_utc_time(dt); for (lpc = 1; lpc < utc->years; lpc++) { - int dmax = year_days(lpc); + long long dmax = year_days(lpc); in_seconds += 60 * 60 * 24 * dmax; } @@ -274,11 +274,11 @@ crm_time_get_seconds(crm_time_t * dt) * for anyone that tries to use a month in this way */ if (utc->months > 0) { - in_seconds += 60 * 60 * 24 * 30 * utc->months; + in_seconds += 60 * 60 * 24 * 30 * (long long) (utc->months); } if (utc->days > 0) { - in_seconds += 60 * 60 * 24 * (utc->days - 1); + in_seconds += 60 * 60 * 24 * (long long) (utc->days - 1); } in_seconds += utc->seconds;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor