-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix command injection vulnerability and other bugs
Change command execution approach, from 'child_process.exec' to 'child_process.spawn', removing the chance to send shell commands to API. This increase code complexity, but fix a serious problem in return. Improve logging, showing errors and interactions between child processes. Reduce google_speech and gtts verbosity. Improve API error responses. Set charset to responses content. Use 'gain' sox effect instead of 'overdrive'. Add same sox effects used in google_speech to gtts. Prepare gtts to accept a future option for slow reading.
- Loading branch information
Showing
1 changed file
with
186 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters