[openssl/openssl] 669815: fuzz/cmp.c: Correct the usages of BIO_new()

0 views
Skip to first unread message

openssl-machine

unread,
Jan 12, 2026, 1:41:38 PM (2 days ago) Jan 12
to openssl...@openssl.org
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 669815e846321e76cffae21ebf08008a20e132e9
https://github.com/openssl/openssl/commit/669815e846321e76cffae21ebf08008a20e132e9
Author: Jiasheng Jiang <jiasheng...@gmail.com>
Date: 2026-01-12 (Mon, 12 Jan 2026)

Changed paths:
M fuzz/cmp.c

Log Message:
-----------
fuzz/cmp.c: Correct the usages of BIO_new()

Use BIO_free() to free "in" if error occurs to avoid memory leak.
Moreover, add check for "out" to avoid NULL pointer dereference.
Also replace OPENSSL_assert with return.

Fixes: e599d0a ("Add CMP fuzzing to fuzz/cmp.c, including a couple of helpers in crypto/cmp/")
Signed-off-by: Jiasheng Jiang <jiasheng...@gmail.com>

Reviewed-by: Matt Caswell <ma...@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.o...@gmail.com>
Reviewed-by: Tomas Mraz <to...@openssl.org>
MergeDate: Mon Jan 12 18:40:14 2026
(Merged from https://github.com/openssl/openssl/pull/27920)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
Reply all
Reply to author
Forward
0 new messages