[Bug c/93887] New: -Q --help=warning,c does not list -Wreturn-local-addr

2020-02-22 Thread tim.ruehsen at gmx dot de
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: ---

[Bug c/93886] New: -Q --help=warning,c does not list -Warray-bounds (gcc 10)

2020-02-22 Thread tim.ruehsen at gmx dot de
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: ---

[Bug demangler/92797] cplus_demangle() produces huge amount of output (on trunk)

2020-02-07 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92797 --- Comment #5 from Tim Ruehsen --- (In reply to ibuclaw from comment #4) > At what point does the D demangler kick in? It should only attempt to parse > symbols that begin with '_D'. There is a reproducer attached. See my initial comment on

[Bug other/92456] libiberty/make-relative-prefix.c: read buffer overflow in split_directories()

2020-01-30 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92456 --- Comment #2 from Tim Ruehsen --- (In reply to Martin Liška from comment #1) > @Tim: Can you please send the patch to GCC patches mailing list? It's long ago, but finally found it: https://gcc.gnu.org/ml/gcc-patches/2019-11/msg02593.html

[Bug demangler/92797] cplus_demangle() produces huge amount of output (on trunk)

2019-12-05 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92797 --- Comment #3 from Tim Ruehsen --- (In reply to Andrew Pinski from comment #2) > (In reply to Tim Ruehsen from comment #1) > > BTW, llvm-cxxfilt does not show this behavior. > > Could it because it does not implement the D demangler? Good

[Bug demangler/92453] write buffer overflow in cplus_demangle()

2019-12-05 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92453 --- Comment #3 from Tim Ruehsen --- (In reply to Christian Biesinger from comment #2) > Could you send your patch to gcc-patches per > https://gcc.gnu.org/contribute.html#patches ? Thanks! I did that some days ago:

[Bug demangler/92797] cplus_demangle() produces huge amount of output (on trunk)

2019-12-04 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92797 --- Comment #1 from Tim Ruehsen --- BTW, llvm-cxxfilt does not show this behavior.

[Bug demangler/92797] New: cplus_demangle() produces huge amount of output (on trunk)

2019-12-04 Thread tim.ruehsen at gmx dot de
Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- Created attachment 47418 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47418=edit 700mb output reproducer c++file `cat slow-u

[Bug demangler/92795] New: Another slowness issue in the demangler (on trunk)

2019-12-04 Thread tim.ruehsen at gmx dot de
Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- c++filt '_ZZ1_DO1z1psp1VEz1VE2On' takes ~1200s to finish. Relevant part

[Bug demangler/92453] write buffer overflow in cplus_demangle()

2019-11-16 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92453 --- Comment #1 from Tim Ruehsen --- Created attachment 47279 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47279=edit Fix write buffer overflow in cplus_demangle() Correctly calculate the demangled size by using two passes.

[Bug other/92456] New: libiberty/make-relative-prefix.c: read buffer overflow in split_directories()

2019-11-11 Thread tim.ruehsen at gmx dot de
: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- Created attachment 47209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47209=edit Patch proposal to fix the is

[Bug demangler/92453] New: write buffer overflow in cplus_demangle()

2019-11-11 Thread tim.ruehsen at gmx dot de
: demangler Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- The following code, compiled in libiberty/ causes a write buffer overflow in cplus_demangle(). ### repro1.c ### #include "../include/demangle.h" void

[Bug middle-end/91946] wrong result comparing pointer with pointer+offset with -m32

2019-10-01 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91946 --- Comment #8 from Tim Ruehsen --- Here is a good blog post about pointer overflow: https://blog.regehr.org/archives/1395

[Bug middle-end/91946] wrong result comparing pointer with pointer+offset with -m32

2019-10-01 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91946 --- Comment #7 from Tim Ruehsen --- Thanks for the explanations :-)

[Bug middle-end/91946] wrong result comparing pointer with pointer+offset with -m32

2019-10-01 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91946 --- Comment #2 from Tim Ruehsen --- Is ssize_t C99 ? Could you point to the specs so that any reader can verify that ? And by UB you mean, gcc sometimes gives 0 and sometimes 1 ? Even if it's UB, the behavior should be consistent. Since this

[Bug c/91946] New: wrong result comparing pointer with pointer+offset with -m32

2019-10-01 Thread tim.ruehsen at gmx dot de
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- The following code compiled with -m32 (alternatively when on a 32bit system) shows wrong output with gcc 8.3.0 and gcc 9.2.1. gcc 7.4.0

[Bug c/90690] New: Undocumented -Werror-implicit-function-declaration

2019-05-31 Thread tim.ruehsen at gmx dot de
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- The command line option '-Werror-implicit-function-declaration' is listed by `gcc -Q --help=warning[,C]` and also accepted by gcc 4.6 up to 9.1. But `man gcc` doesn't

[Bug c/84883] No warning when dereferencing an array as a pointer

2018-03-29 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84883 --- Comment #2 from Tim Ruehsen --- (In reply to Martin Sebor from comment #1) > (b) could be implemented in the C/C++ front ends which do have access > to the algorithm but not to data flow analysis, so the warning there would > be quite

[Bug c/84883] New: No warning when dereferencing an array as a pointer

2018-03-15 Thread tim.ruehsen at gmx dot de
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de Target Milestone: --- Created attachment 43669 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43669=edit Small test code It would be nice to a warning (option) if accidenta

[Bug sanitizer/81598] -fsanitize=enum does not detect range violation

2017-07-28 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81598 --- Comment #2 from Tim Ruehsen --- (In reply to Jakub Jelinek from comment #1) > This isn't a load, it is a cast, we sanitize just loads from memory. Hmmm, seems ok if the compiler doesn't warn. But the sanitizer IMO should trigger. What if

[Bug sanitizer/81598] New: -fsanitize=enum does not detect range violation

2017-07-28 Thread tim.ruehsen at gmx dot de
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: tim.ruehsen at gmx dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone

[Bug c/16351] NULL dereference warnings

2017-01-07 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351 --- Comment #51 from Tim Ruehsen --- (In reply to Martin Sebor from comment #50) > Yes, -Wnull-dereference is only in GCC 6 and later. -Wnonnull is in 5 and > prior but it does only a superficial job of checking (it only detects null > pointer

[Bug c/16351] NULL dereference warnings

2015-08-08 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351 --- Comment #42 from Tim Ruehsen tim.ruehsen at gmx dot de --- (In reply to Jeffrey A. Law from comment #41) Actually I think we want the concept of never returns NULL, both as an attribute and as a property the compiler can discover

[Bug c/16351] NULL dereference warnings

2015-05-05 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351 --- Comment #28 from Tim Ruehsen tim.ruehsen at gmx dot de --- I far as I can read, not a patch is missing. A review + commit is missing. How can you ask for more developers (=patches) when the work is ignored ? Don't get me wrong, I just try

[Bug c/16351] NULL dereference warnings

2015-05-05 Thread tim.ruehsen at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351 Tim Ruehsen tim.ruehsen at gmx dot de changed: What|Removed |Added CC||tim.ruehsen

[Bug c/53871] Please warn about endless loops if they are obvious

2012-07-10 Thread tim.ruehsen at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53871 --- Comment #4 from Tim Ruehsen tim.ruehsen at gmx dot de 2012-07-10 07:58:26 UTC --- (In reply to comment #3) I have thought a lot how to attract more and new developers to GCC who will be willing to develop things that are not a priority

[Bug c/53871] Please warn about endless loops if they are obvious

2012-07-09 Thread tim.ruehsen at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53871 --- Comment #2 from Tim Ruehsen tim.ruehsen at gmx dot de 2012-07-09 11:50:19 UTC --- (In reply to comment #1) (In reply to comment #0) Obvious endless loops could be reported, e.g. if the loop condition doesn't change and the loop can't

[Bug c/53871] New: Please warn about endless loops if they are obvious

2012-07-06 Thread tim.ruehsen at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53871 Bug #: 53871 Summary: Please warn about endless loops if they are obvious Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: enhancement

[Bug c/49748] char * const * cannot be assigned to char const * const *

2012-02-23 Thread tim.ruehsen at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49748 Tim Ruehsen tim.ruehsen at gmx dot de changed: What|Removed |Added CC||tim.ruehsen at gmx