[Rpm-maint] [rpm-software-management/rpm] Fix IMA signature fubar, take III (#1833, RhBug:2018937) (PR #1914)

Michael Schroeder notifications at github.com
Tue Feb 8 08:45:41 UTC 2022


But now you'll get a NULL return value for empty signatures, because `signature` is only set if `off` is not zero.

Can't you do the special casing in the lookup instead? I.e.:
```
uint32_t off = fi->signatureoffs[ix];
size_t slen = fi->signatureoffs[ix + 1] - off;
if (!slen)
    off = 0;    /* return special block of zeros for empty signatures */
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1914#issuecomment-1032354810
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1914/c1032354810 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220208/90d94c55/attachment.html>


More information about the Rpm-maint mailing list