https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
--- Comment #8 from Martin Sebor ---
The Asan warning is much clearer because it's based on actually observed
values. This instance of the -Wrestrict warning is based on a heuristic: "we
think the copy may overlap because it is within the same
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
--- Comment #7 from Martin Liška ---
(In reply to Martin Sebor from comment #4)
> I've created a test case using the canonicalize_pathname function showing
> that it does, in fact, cause an overlap to take place. The following line
> in the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
--- Comment #6 from Martin Liška ---
(In reply to Bruce Korb from comment #5)
> (In reply to Martin Sebor from comment #4)
>
> > canonicalize_pathname.c: In function ‘canonicalize_pathname’:
> > canonicalize_pathname.c:61:2: warning: ‘strcpy’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
Bruce Korb changed:
What|Removed |Added
CC||bkorb at gnu dot org
--- Comment #5 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
--- Comment #3 from Martin Sebor ---
Created attachment 45497
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45497=edit
canonicalize_pathname function extracted from the translation unit.
Attached is the canonicalize_pathname function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
Martin Sebor changed:
What|Removed |Added
Blocks||84774
--- Comment #2 from Martin Sebor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
Priority|P3