Nim/lib/system/memory.nim:10:24: runtime error: null pointer passed as argument 2, which is declared to never be null
Example clang 14.0.6 output:
Nim/lib/system/memory.nim:10:40: runtime error: null pointer passed as argument 2, which is declared to never be null
/usr/include/string.h:44:28: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Nim/lib/system/memory.nim:10:40
Example gcc 12.3.0 UBSAN output:
Example clang 14.0.6 output: