[Bug tree-optimization/86199] warn on calls to strlen with same argument as in strnlen

2022-01-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86199 Martin Sebor changed: What|Removed |Added Assignee|msebor at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug tree-optimization/86199] warn on calls to strlen with same argument as in strnlen

2018-06-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86199 --- Comment #1 from Martin Sebor --- Ditto for strdup vs strndup, although there it might be worth considering diagnosing only calls where the strndup bound is equal the size of the source array, as in: char a[4], *p, *q; void f (void) { p =

[Bug tree-optimization/86199] warn on calls to strlen with same argument as in strnlen

2018-06-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86199 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Assignee|unassigned

[Bug tree-optimization/86199] warn on calls to strlen with same argument as in strnlen

2018-06-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86199 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|