Mailinglist Archive: opensuse (2532 mails)
| < Previous | Next > |
Re: [opensuse] strtof problem - what am I doing wrong?
- From: Anders Johansson <ajh@xxxxxxxxxx>
- Date: Sun, 4 May 2008 14:16:06 +0200
- Message-id: <200805041416.06974.ajh@xxxxxxxxxx>
On Sunday 04 May 2008 11:46:12 Sam Clemens wrote:
-fstack-protector
-ffortify=2 is also quite useful. At the cost of a bit of performance, it
checks most of your boundaries for you
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Cristian Rodríguez wrote:
David C. Rankin escribió:
int main(int argc, char *argv[])
{
char *endptr, *str, newstr[20];
strcpy(newstr,argv[1]);
^^
./a.out 23000000000000000000000000000000000000
*** stack smashing detected ***: ./a.out terminated
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I've never see that run-time error message.
What compiler flags did you use to get THAT to be produced?
-fstack-protector
-ffortify=2 is also quite useful. At the cost of a bit of performance, it
checks most of your boundaries for you
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |