memcpy in string_alloc_full was copying 32 bytes, while the string is only 25 bytes including the terminating null byte.
Also, since this is a string literal, there is no need to actually copy it. Just allocating a head is enough if I'm reading the code correctly. This was also found by building with LTO enabled.
memcpy
instring_alloc_full
was copying 32 bytes, while the string is only 25 bytes including the terminating null byte.Also, since this is a string literal, there is no need to actually copy it. Just allocating a head is enough if I'm reading the code correctly. This was also found by building with LTO enabled.