mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-20 19:21:57 +00:00
Use strcpy instead of memcpy+strlen.
This replaces uses of: memcpy(dst, src, strlen(src)) with: strcpy(dst, src) This fixes issues with reading past the end of the copied buffer (e.g. when processing word-based replacements for emoji characters) by ensuring that the destination buffer is null terminated. Reported by Michael Curran <mick@nvaccess.org>
This commit is contained in:
@@ -250,6 +250,7 @@ tests_api_test_SOURCES = tests/api.c
|
||||
check: tests/encoding.check \
|
||||
tests/readclause.check \
|
||||
tests/api.check \
|
||||
tests/phoneme-output.check \
|
||||
tests/languages.check
|
||||
|
||||
##### phoneme data:
|
||||
|
||||
Reference in New Issue
Block a user