Blame rpm-4.16.1.3-pgp-explicit-pointer-increment.patch
|
Michal Domonkos |
ae9528 |
diff -up rpm-4.16.1.3/rpmio/rpmpgp.c.orig rpm-4.16.1.3/rpmio/rpmpgp.c
|
|
Michal Domonkos |
ae9528 |
--- rpm-4.16.1.3/rpmio/rpmpgp.c.orig 2024-07-11 13:20:04.872431485 +0200
|
|
Michal Domonkos |
ae9528 |
+++ rpm-4.16.1.3/rpmio/rpmpgp.c 2024-07-11 13:20:33.828279453 +0200
|
|
Michal Domonkos |
ae9528 |
@@ -619,7 +619,7 @@ static int pgpPrtSig(pgpTag tag, const u
|
|
Michal Domonkos |
ae9528 |
p = &v->hashlen[0];
|
|
Michal Domonkos |
ae9528 |
if (pgpGet(v->hashlen, sizeof(v->hashlen), h + hlen, &plen))
|
|
Michal Domonkos |
ae9528 |
return 1;
|
|
Michal Domonkos |
ae9528 |
- p += sizeof(v->hashlen);
|
|
Michal Domonkos |
ae9528 |
+ p = h + sizeof(v);
|
|
Michal Domonkos |
ae9528 |
|
|
Michal Domonkos |
ae9528 |
if ((p + plen) > (h + hlen))
|
|
Michal Domonkos |
ae9528 |
return 1;
|