RFR: 8361868: [GCC static analyzer] complains about missing calloc - NULL checks in p11_util.c
Matthias Baesken
mbaesken at openjdk.org
Tue Jul 15 14:30:00 UTC 2025
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).
-------------
Commit messages:
- JDK-8361868
Changes: https://git.openjdk.org/jdk/pull/26319/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26319&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8361868
Stats: 8 lines in 1 file changed: 8 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/26319.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26319/head:pull/26319
PR: https://git.openjdk.org/jdk/pull/26319
More information about the security-dev
mailing list