diff --git a/rpm-5.4.10-fix-fsanitize-integer.patch b/rpm-5.4.10-fix-fsanitize-integer.patch index 33cd0d0..75a975b 100644 --- a/rpm-5.4.10-fix-fsanitize-integer.patch +++ b/rpm-5.4.10-fix-fsanitize-integer.patch @@ -1,10 +1,11 @@ diff -urN rpm-5.4.10/lib/depends.c rpm-5.4.10-patched/lib/depends.c --- rpm-5.4.10/lib/depends.c 2012-04-16 08:20:56.000000000 +1100 -+++ rpm-5.4.10-patched/lib/depends.c 2017-01-24 21:37:17.543450265 +1000 -@@ -59,6 +59,13 @@ ++++ rpm-5.4.10-patched/lib/depends.c 2017-01-24 22:01:08.293412374 +1000 +@@ -58,7 +58,13 @@ + { const uint32_t * aptr = (const uint32_t *) a; const uint32_t * bptr = (const uint32_t *) b; - int rc = (*aptr - *bptr); +- int rc = (*aptr - *bptr); + int rc; + if (*aptr > *bptr) + rc = 1; @@ -17,7 +18,7 @@ diff -urN rpm-5.4.10/lib/depends.c rpm-5.4.10-patched/lib/depends.c diff -urN rpm-5.4.10/lib/rpmts.c rpm-5.4.10-patched/lib/rpmts.c --- rpm-5.4.10/lib/rpmts.c 2012-04-16 08:20:58.000000000 +1100 -+++ rpm-5.4.10-patched/lib/rpmts.c 2017-01-24 21:39:58.178446011 +1000 ++++ rpm-5.4.10-patched/lib/rpmts.c 2017-01-24 22:00:48.517412898 +1000 @@ -1211,20 +1211,32 @@ */ case FA_CREATE: