]> granicus.if.org Git - openssl/commit
Fix Issue OSS-Fuzz: Branch on uninitialized memory (in ccm code).
authorShane Lontis <shane.lontis@oracle.com>
Sun, 25 Aug 2019 07:10:48 +0000 (17:10 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Sun, 25 Aug 2019 07:10:55 +0000 (17:10 +1000)
commit37a830e729f56cfc7b893f321880ac52f1b35cdb
treeae4be7504516dd293d1fb7c7d85a2b4938f21ff3
parentf3b8d77f99c84e39c48599ad54366e806f3b9478
Fix Issue OSS-Fuzz: Branch on uninitialized memory (in ccm code).

This would also happen for aes-ccm. There was one branch path where it just returned 1
without setting *padlen, It now branches so that the value is set to 0.

Fixes #9691

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9692)
providers/common/ciphers/cipher_ccm.c