witekfl branch: quoting for FLITE_SYSTEM
Kalle Olavi Niemitalo <[email protected]>
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
commit e965d07055f5dd3e046469232e4b3986fb60cbaf speech: added flite - the alternative synthesis engine. write_to_festival inserts backslashes in front of double-quotes and backslashes so that Festival can distinguish them from string delimiters. Now if FLITE_SYSTEM is selected, the output instead goes to a loop in init_festival that adds quotes around the string and "flite -t " to the beginning and calls system(). Unfortunately, the shell executed by system() recognizes more metacharacters in double-quoted strings than just double-quotes and backslashes. Specifically, if the string contains `foo` or $(foo), then arbitrary programs can be executed. It may also be possible that flite treats the entire line as an option if it begins with a dash. (The quotes don't help here because the shell eats them.) The documentation at <http://www.speech.cs.cmu.edu/flite/doc/flite_7.html#SEC16> does not say whether that is possible; I suppose someone should check the source code of flite. _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc
(application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFkZ5fHm9IGt60eMgRApjAAKDX8jycpUmjerKfGzQ1Vj9KEwa9dgCgpBIc R5vaSX5LwQVgYimKRNQOars= =4Us9 -----END PGP SIGNATURE-----