[Rpm-maint] [rpm-software-management/rpm] rpm segfaults when importing keys downloaded from keys.openpgp.org (Issue #3001)
Panu Matilainen
notifications at github.com
Tue Apr 2 11:03:27 UTC 2024
Heh, so a more careful reading of the report... the userid is *intentionally* removed here.
So assuming that's a reasonable thing to do (considering where these keys are coming from), the minimal fix would probably be this instead:
```
- digps[count]->userid = xstrdup(mainkey->userid);
+ if (mainkey->userid)
+ digps[count]->userid = xstrdup(mainkey->userid);
```
There could be other places that rely on the userid being there besides this.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3001#issuecomment-2031708849
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3001/2031708849 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240402/64994899/attachment.html>
More information about the Rpm-maint
mailing list