RFR: 8273342: Null pointer dereference in classFileParser.cpp:2817

Harold Seigel hseigel at openjdk.java.net
Mon Oct 4 17:42:16 UTC 2021


Please review this fix to always return a non-null value from fieldDescriptor::generic_signature() when a generic signature exists, even in places in the function that should never get executed.  This will prevent code analyzers from complaining about possible null dereferences by callers of generic_signature().

The change was tested with Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64.

Thanks, Harold


Commit messages:
 - 8273342: Null pointer dereference in classFileParser.cpp:2817

Changes: https://git.openjdk.java.net/jdk/pull/5807/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5807&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273342
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5807.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5807/head:pull/5807

PR: https://git.openjdk.java.net/jdk/pull/5807

More information about the hotspot-runtime-dev mailing list