[jdk17u-dev] RFR: 8332825: ubsan: guardedMemory.cpp:35:11: runtime error: null pointer passed as argument 2, which is declared to never be null
    Thomas Stuefe 
    stuefe at openjdk.org
       
    Wed Aug 28 13:02:25 UTC 2024
    
    
  
On Wed, 28 Aug 2024 12:44:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> 8332825: ubsan: guardedMemory.cpp:35:11: runtime error: null pointer passed as argument 2, which is declared to never be null
src/hotspot/share/memory/guardedMemory.cpp line 38:
> 36:     if (ptr != nullptr) {
> 37:       memcpy(innerp, ptr, len);
> 38:     }
Hmm. innerp can never be null. If anything, we should assert.
-------------
PR Review Comment: https://git.openjdk.org/jdk17u-dev/pull/2829#discussion_r1734634157
    
    
More information about the jdk-updates-dev
mailing list