Felipe Contreras wrote on Sat, 02 Jan 2021 12:30 -0600: > The best fix is to allocate one byte, especially if it's going to be > freed later on. Yes, please revise the patch to allocate byte(s) from the heap as needed. (See comments at the top of mem.c, and, for instance, dupstring() v. ztrdup().)