during a check with the static code analysis tool cppcheck
(https://sourceforge.net/projects/cppcheck/) the tool discovered
an overlapping data buffer in plcore.c at line 967
[plcore.c:967]: (Error) Overlapping data buffer buf
Take a look at the code:
snprintf( buf, BUFFER_SIZE, "UTF-8 string is malformed: %s%s",
buf, strlen( string ) > 30 ? "[...]" : "" );
Indeed the buffer 'buf' overlapps.
Log in to post a comment.