Testing fixes for security improvement, thread safety, and memory management.

This commit is contained in:
Storm Dragon
2025-06-09 14:41:33 -04:00
parent 62e1001679
commit 6998706934
7 changed files with 19 additions and 10 deletions

View File

@ -174,7 +174,8 @@ class driver(speechDriver):
word = word.replace('fenrirVoice', str(utterance['voice']))
word = word.replace('fenrirPitch', str(utterance['pitch']))
word = word.replace('fenrirRate', str(utterance['rate']))
word = word.replace('fenrirText', str(utterance['text']))
# Properly quote text to prevent command injection
word = word.replace('fenrirText', shlex.quote(str(utterance['text'])))
popenSpeechCommand[idx] = word
try: