diff --git a/include-limits.patch b/include-limits.patch new file mode 100644 index 0000000..c050498 --- /dev/null +++ b/include-limits.patch @@ -0,0 +1,11 @@ +diff -ru libvpx-1.7.0/vpx/src/vpx_image.c libvpx-1.7.0.new/vpx/src/vpx_image.c +--- libvpx-1.7.0/vpx/src/vpx_image.c 2018-01-24 23:25:44.000000000 +0100 ++++ libvpx-1.7.0.new/vpx/src/vpx_image.c 2024-08-27 15:22:25.886886526 +0200 +@@ -10,6 +10,7 @@ + + #include + #include ++#include + + #include "vpx/vpx_image.h" + #include "vpx/vpx_integer.h" diff --git a/libvpx.spec b/libvpx.spec index 4e360a0..2c6cb10 100644 --- a/libvpx.spec +++ b/libvpx.spec @@ -30,6 +30,7 @@ Patch6: 0001-VP8-disallow-thread-count-changes.patch Patch7: 0001-Fix-integer-overflows-in-calc-of-stride_in_bytes.patch Patch8: 0002-Apply-stride_align-to-byte-count-not-pixel-count.patch Patch9: 0003-Fix-a-bug-in-alloc_size-for-high-bit-depths.patch +Patch10: include-limits.patch %description libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications @@ -66,6 +67,7 @@ and decoder. %patch7 -p1 -b .0007 %patch8 -p1 -b .0008 %patch9 -p1 -b .0009 +%patch10 -p1 -b .0010 %build %ifarch %{ix86} @@ -257,6 +259,7 @@ rm -rf %{buildroot}%{_prefix}/src %changelog * Fri Jul 5 2024 Wim Taymans - 1.7.0-11 - Add patch to fix integer overflows. +- Fix compilation by including limits.h - Resolves: RHEL-40650 * Thu Oct 5 2023 Wim Taymans - 1.7.0-10