https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #19 from Heiko Eißfeldt ---
(In reply to Joseph S. Myers from comment #0)
> The atoi function has undefined behavior if its argument is outside
> the range of int. Thus, GCC should not use it for any user input that
> might be outsid
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #18 from Heiko Eißfeldt ---
While going through a new list of ato[ilq]{,l} usages I found that both
libbacktrace and lib_vtv implement their own PE COFF reader.
Could/should this PE COFF parsing code be extracted to one place (which?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #17 from Heiko Eißfeldt ---
> > I would like to fix the atoi in read-rtl and atoi/atol/atoll/atoq in
> > read-rtl-function, using strtoq as a fallback when strtoll is not available.
>
> Please note that you have strtoll (and friends)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #16 from Uroš Bizjak ---
(In reply to Heiko Eißfeldt from comment #12)
> (In reply to GCC Commits from comment #11)
> > The trunk branch has been updated by Andrew Pinski :
> ...
> > Note since this code
> > still uses atoi, an in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #15 from Heiko Eißfeldt ---
Thanks a lot, I will add atoq too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #14 from Andrew Pinski ---
Created attachment 59847
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59847&action=edit
Patch which adds the poison to system.h
Obvious this does not compile right now because of the use of atoi but
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #13 from Heiko Eißfeldt ---
(In reply to Andrew Pinski from comment #9)
> I am going to add a:
> #pragma GCC posion atoi
>
> And fix all of the cases.
Andrew, since I am currently working on this, could you supply a patch
regarding
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
Heiko Eißfeldt changed:
What|Removed |Added
CC||heiko at hexco dot de
--- Comment #12 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #11 from GCC Commits ---
The trunk branch has been updated by Andrew Pinski :
https://gcc.gnu.org/g:e74f3eb1897745706b7b4d10bb60fc7f28f25b5e
commit r15-5526-ge74f3eb1897745706b7b4d10bb60fc7f28f25b5e
Author: Andrew Pinski
Date: Tu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
Andrew Pinski changed:
What|Removed |Added
Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
Andrew Pinski changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #8 from Andrew Pinski ---
> opts.c
> lto-wrapper.c
> lto/lto.c
These 3 are all about parsing of -flto=N option; PR 114542
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #7 from Andrew Pinski ---
>read-rtl-function.c
Someone most likely can come up with a testcase for this one using the RTL
parser.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
Andrew Pinski changed:
What|Removed |Added
Summary|Avoid use of atoi |[meta-bug] Avoid use of
14 matches
Mail list logo