mirror of
https://abf.rosa.ru/djam/rpm.git
synced 2025-02-23 18:33:04 +00:00
Fix fix-fsanitize-integer patch (drop old line)
This commit is contained in:
parent
b1b5b91fa8
commit
300bba9bd4
1 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,11 @@
|
||||||
diff -urN rpm-5.4.10/lib/depends.c rpm-5.4.10-patched/lib/depends.c
|
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/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
|
+++ rpm-5.4.10-patched/lib/depends.c 2017-01-24 22:01:08.293412374 +1000
|
||||||
@@ -59,6 +59,13 @@
|
@@ -58,7 +58,13 @@
|
||||||
|
{
|
||||||
const uint32_t * aptr = (const uint32_t *) a;
|
const uint32_t * aptr = (const uint32_t *) a;
|
||||||
const uint32_t * bptr = (const uint32_t *) b;
|
const uint32_t * bptr = (const uint32_t *) b;
|
||||||
int rc = (*aptr - *bptr);
|
- int rc = (*aptr - *bptr);
|
||||||
+ int rc;
|
+ int rc;
|
||||||
+ if (*aptr > *bptr)
|
+ if (*aptr > *bptr)
|
||||||
+ rc = 1;
|
+ 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
|
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/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 @@
|
@@ -1211,20 +1211,32 @@
|
||||||
*/
|
*/
|
||||||
case FA_CREATE:
|
case FA_CREATE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue