--- /dev/null
+--- fwupdate-8/efi/fwupdate.c.orig 2016-11-15 16:24:00.862246035 +0100
++++ fwupdate-8/efi/fwupdate.c 2016-11-15 16:24:06.562245972 +0100
+@@ -44,7 +44,7 @@
+ #endif
+ #ifndef uintn_mult
+ #define uintn_mult(a, b, c) ({ \
+- const UINTN _limit = ~0ULL; \
++ const UINTN _limit = (UINTN)~0ULL; \
+ int _ret = 1; \
+ if ((a) != 0 && (b) != 0) { \
+ _ret = _limit / (a) < (b); \
Group: Libraries
Source0: https://github.com/rhinstaller/fwupdate/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: b68e67b706ac5f551e8fcab20cf43a60
+Patch0: %{name}-overflow.patch
URL: https://github.com/rhinstaller/fwupdate
BuildRequires: efivar-devel >= 0.19
BuildRequires: gnu-efi
%prep
%setup -q
+%patch0 -p1
%if %{without pesign}
%{__sed} -i -e 's/pesign/cp $< $@ \&\& : &/' efi/Makefile