On Thu, 17 Sep 2026 15:47:12 GMT, Matthias Baesken <[email protected]> wrote:
> The gcc static analyzer reports this issue : > > > src/jdk.jdwp.agent/share/native/libjdwp/signature.c:49:28: warning: > dereference of NULL 'tagPtr' [CWE-476] [-Wanalyzer-null-dereference] > src/jdk.jdwp.agent/share/native/libjdwp/signature.c:50:12: warning: > dereference of NULL 'tagPtr' [CWE-476] [-Wanalyzer-null-dereference] > > > Normally the > char *tagPtr = strchr(signature, SIGNATURE_END_ARGS); > call should not return NULL; but maybe (in theory with bad/malformed input) > it could happen so better add a NULL check. > In debug builds, the following JDI_ASSERT should handle it. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 8610e806 Author: Matthias Baesken <[email protected]> URL: https://git.openjdk.org/jdk/commit/8610e806260f4eec6d98a5b418e4a1bc11a9a3cb Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod 8392559: [GCC static analyzer] function methodSignature should check for JVMTI errors Reviewed-by: sspitsyn, cjplummer ------------- PR: https://git.openjdk.org/jdk/pull/32929
