Bug#1014272: src:linux: sign-file: correct error handling
Hi Ansgar,
On Sun, Jul 03, 2022 at 11:47:51AM +0200, Ansgar wrote:
> Source: linux
> Version: 5.18.5-1
> Severity: normal
> Tags: upstream
> Control: found -1 4.19.208-1 5.10.84-1
>
> The functions CMS_final, i2d_CMS_bio_stream, i2d_PKCS7_bio and
> BIO_free all return 1 for success or 0 for failure. The old check
> for a value less than 0 would never catch an error.
>
> I tried signing a kernel module with the patched sign-file and that
> still worked.
Can you forward your patch to upstream?
Regards,
Salvatore
Reply to: