1.5.0 release (#1824326)

include upstream patch to fix 32-bit platform compile, reported at
  https://github.com/Yubico/libfido2/issues/210
This commit is contained in:
Gary Buhrmaster 2020-09-11 04:58:00 +00:00
parent a69ecb2aca
commit 42627859f7
6 changed files with 43 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/libfido2-1.3.0.tar.gz
/libfido2-1.3.1.tar.gz
/libfido2-1.4.0.tar.gz
/libfido2-1.5.0.tar.gz

View File

@ -0,0 +1,30 @@
From 7a17a4e9127fb6df6278f19396760e7d60a5862c Mon Sep 17 00:00:00 2001
From: pedro martelletto <pedro@ambientworks.net>
Date: Wed, 9 Sep 2020 18:01:53 +0200
Subject: [PATCH] add two casts to silence warnings on 32-bit
add two casts to silence 'comparison is always false' warnings on
32-bit platforms (gcc: -Werror=type-limits, clang:
-Wtautological-constant-out-of-range-compare); gh#210
---
src/hid_linux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hid_linux.c b/src/hid_linux.c
index 9788012..c554784 100644
--- a/src/hid_linux.c
+++ b/src/hid_linux.c
@@ -385,8 +385,8 @@ timespec_to_ms(const struct timespec *ts, int upper_bound)
int64_t x;
int64_t y;
- if (ts->tv_sec < 0 || ts->tv_sec > INT64_MAX / 1000LL ||
- ts->tv_nsec < 0 || ts->tv_nsec / 1000000LL > INT64_MAX)
+ if (ts->tv_sec < 0 || (uint64_t)ts->tv_sec > INT64_MAX / 1000LL ||
+ ts->tv_nsec < 0 || (uint64_t)ts->tv_nsec / 1000000LL > INT64_MAX)
return (upper_bound);
x = ts->tv_sec * 1000LL;
--
2.26.2

Binary file not shown.

BIN
libfido2-1.5.0.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
Name: libfido2
Version: 1.4.0
Release: 4%{?dist}
Version: 1.5.0
Release: 1%{?dist}
Summary: FIDO2 library
License: BSD
@ -9,6 +9,10 @@ URL: https://github.com/Yubico/%{name}
Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz
Source1: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz.sig
Source2: gpgkey-7FBB6186957496D58C751AC20E777DD85755AA4A.gpg
#
# Upstream patch for building on 32-bit platforms
#
Patch0001: 0001-add-two-casts-to-silence-warnings-on-32-bit.patch
BuildRequires: cmake
BuildRequires: hidapi-devel
@ -84,6 +88,11 @@ find %{buildroot} -type f -name "*.a" -delete -print
%changelog
* Fri Sep 11 2020 Gary Buhrmaster <gary.buhrmaster@gmail.com> 1.5.0-1
- 1.5.0 release (#1824326)
- include upstream patch to fix 32-bit platform compile, reported at
https://github.com/Yubico/libfido2/issues/210
* Tue Sep 08 2020 Kalev Lember <klember@redhat.com> - 1.4.0-4
- Rebuilt for libcbor soname bump

View File

@ -1 +1 @@
SHA512 (libfido2-1.4.0.tar.gz) = 5cf2f2d70bdba893fd33bf3ca91940c7eded5ed1728b517ff3fc46cbde58bf64f16da4104138b20dcea1d9a1cec730e532bc4938cdcba4ad86343e51a1c3c513
SHA512 (libfido2-1.5.0.tar.gz) = 240e2368e43846fddf5e98bbcc247468833565bcde4ec27976b88c814d787f1a477241a82b064818aa0eb0a98ff46a65d80b8243f4d0bbd763270e42492354e2