[openssl/openssl] 9b653f: Fix silent failure in ASYNC_start_job when size is 0

0 views
Skip to first unread message

awz66661

unread,
Dec 18, 2025, 11:36:38 AM (20 hours ago) Dec 18
to openssl...@openssl.org
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 9b653f8e13c4fe83c35ece21d8cc7850e4ee0c4e
https://github.com/openssl/openssl/commit/9b653f8e13c4fe83c35ece21d8cc7850e4ee0c4e
Author: Weizhi Ao <23624...@qq.com>
Date: 2025-12-18 (Thu, 18 Dec 2025)

Changed paths:
M crypto/async/async.c

Log Message:
-----------
Fix silent failure in ASYNC_start_job when size is 0

When ASYNC_start_job is called with args != NULL but size == 0,
OPENSSL_malloc(0) is called. Depending on the libc implementation,
malloc(0) may return NULL, causing a silent failure.

This patch modifies the logic to skip allocation if size is 0.

CLA: trivial

Reviewed-by: Norbert Pocs <norb...@openssl.org>
Reviewed-by: Saša Nedvědický <sas...@openssl.org>
Reviewed-by: Tomas Mraz <to...@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29377)

(cherry picked from commit 5cbbced70dd7dd37b6b11dc6e5b7ca78d4d2e436)



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