Re: Use (f)puts instead of (f)printf when possible.

Bruno Haible <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <4811014.CL050BxBj0@omega>
Pascal Bourguignon wrote on 2017-08-25:
> >      fprint(stderr,GETTEXTL(“Warning: “));
> 
> The point is that this is some external data, obtained at run-time from files that are not necessarily under the control of the program (eg. some distributions package the localisable file separately).

'fprint' does not do format string processing (unlike fprintf).
Therefore if some malicious translation is present in a .mo file, the
program will output it, but it will not crash from it. (Although if
it contains ANSI control codes, it may make your terminal go into
strange states or crash. But that's a bug in the terminal emulator.)

The security risks for setuid programs are handled through glibc/intl/
or libintl (on non-glibc systems).

Bruno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.