mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Field spki_size is defined as size_t, so it can never be negative. Before the check, sk_ep11_valid_ep11_blob() ensures that hdr->len is never greater than key_token_length, so the subtraction can never overflow the result, but it still can be zero. Assisted-by: IBM Bob:2.0.0 Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>