Integrated: 8361868: [GCC static analyzer] complains about missing calloc - NULL checks in p11_util.c

Matthias Baesken mbaesken at openjdk.org
Thu Jul 17 11:26:54 UTC 2025


On Tue, 15 Jul 2025 14:23:19 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> When using the GCC -fanalyzer flag (see https://developers.redhat.com/articles/2022/04/12/state-static-analysis-gcc-12-compiler# ) , we get some complaints about missing calloc return value checks for NULL (we check at some code locations but in p11_util.c we do not do it).

This pull request has now been integrated.

Changeset: 1cde536b
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1cde536b98f2ebde0c18c65dcbf26254ed402776
Stats:     8 lines in 1 file changed: 8 ins; 0 del; 0 mod

8361868: [GCC static analyzer] complains about missing calloc - NULL checks in p11_util.c

Reviewed-by: lucy, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/26319


More information about the security-dev mailing list