This is the mail archive of the
mailing list for the GCC project.
Re: Preparsing sprintf format strings
- From: Bernd Schmidt <bernds_cb1 at t-online dot de>
- To: Ross Ridge <rridge at csclub dot uwaterloo dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 12 Oct 2007 16:43:55 +0200
- Subject: Re: Preparsing sprintf format strings
- References: <20071012122613.29AF473D0B@caffeine.csclub.uwaterloo.ca>
Ross Ridge wrote:
> The compiler can't in general know what encoding that printf, fprintf,
> and sprintf will use to parse the string. It's locale dependent.
Does this mean it can vary from one run of the program to another? I'll
admit I don't understand locales very well, but doesn't this sound like
a recipe for security holes?
This footer brought to you by insane German lawmakers.
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif