bber
Sent: Saturday, April 23, 2022 2:04 AM
To: pinskia at gcc dot gnu.org
Subject: RE: [Bug c/105357] dereferenced ptr on param stack gets over written
Thank you for the comments.
However, the data being overwritten is on the stack in a function which is
called after the problematic scanf() etc
access of the overwritten
lvalue.
Regards,
Victor Webber
V&T: 408-221-8467
V: 805-924-1953
vweb...@msn.com
-Original Message-
From: pinskia at gcc dot gnu.org
Sent: Saturday, April 23, 2022 1:07 AM
To: vweb...@msn.com
Subject: [Bug c/105357] dereferenced ptr on param stack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105357
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105357
--- Comment #1 from Andrew Pinski ---
scanf("%s", town_name);
Can be problematic.
Especially with just size of 6.