Closed fschuetz closed 1 year ago
thanks, i'll get on it
Okay, I just checked it in. It's currently going through my CI/CD process but you can use the bits in the repo already. Let me know if you have any other problems. I really appreciate all your help, and how thorough you are about reporting. It helps me move quickly to make fixes.
I'm marking this as completed for now, but reopen if necessary.
In the file
gfx/src/gfx_svg_doc.cpp
there are many operations that copy part of a memory area into another but tuncate it, for example in functionsvg_parese_attr(...)
is the statementstrncpy(name, s.value(), sizeof(name));
. If compiled with the compiler flag-Werror=stringop-truncation
leads to errors (this flag is default when building under espidf under platformio manually as release). In that specific case:The error (or warning) can be avoided by using memcpy with the same arguments. Eg.
memcpy(name, s.value(), sizeof(name));
in this case.The affected statements in 0a32e53 are: