1.1 --- a/src/os/bsd/vm/decoder_machO.cpp Mon Sep 23 20:26:18 2019 +0200 1.2 +++ b/src/os/bsd/vm/decoder_machO.cpp Fri Apr 03 14:14:26 2020 +0100 1.3 @@ -97,6 +97,7 @@ 1.4 char * symname = mach_find_in_stringtable((char*) ((uintptr_t)mach_base + stroff), strsize, found_strx); 1.5 if (symname) { 1.6 strncpy(buf, symname, buflen); 1.7 + buf[buflen - 1] = '\0'; 1.8 return true; 1.9 } 1.10 DEBUG_ONLY(tty->print_cr("no string or null string found."));