[openssl/openssl] 3483e9: 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 (21 hours ago) Dec 18
to openssl...@openssl.org
Branch: refs/heads/openssl-3.6
Home: https://github.com/openssl/openssl
Commit: 3483e915cc2fa349a84f1f5e20391692a5945ff0
https://github.com/openssl/openssl/commit/3483e915cc2fa349a84f1f5e20391692a5945ff0
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