RFR: 8332589: ubsan: unix/native/libjava/ProcessImpl_md.c:562:5: runtime error: null pointer passed as argument 2, which is declared to never be null [v2]

Matthias Baesken mbaesken at openjdk.org
Thu May 23 11:38:06 UTC 2024


On Thu, 23 May 2024 10:57:28 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

>However, if we ever call this with a non-zero sp.dirlen and a null c->pdir, we'd be in trouble. In the old code, we would have 
> crashed. Now, we will just silently ignore this, and God knows what will happen after that part.

In this special case we can return -1 ;  the spawnChild  function already returns -1 in some other error cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/19329#issuecomment-2126888052


More information about the core-libs-dev mailing list