use of %n in genmodes.c causes trouble on Vista

Robert Dewar dewar@adacore.com
Wed Jun 6 22:41:00 GMT 2007


Danny Smith wrote:

> Unless I'missing soemthing, this is 'just' a build issue in genmode.c.
> GCC builds fine for Vista target on WindowsXP. 
> So the fix needs to be build dependent, not host dependent.  

Well if a clean fix can be found that simply avoids the use of %n, then
that's target independent and clean. I think that makes sense. The idea
that %n is a security risk is not some Microsoft-only invention, and it
is not unlikely that other environments will implement a similar check.
> 
> Danny



More information about the Gcc mailing list