https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
--- Comment #9 from Aldy Hernandez ---
Author: aldyh
Date: Wed Sep 13 16:50:00 2017
New Revision: 252389
URL: https://gcc.gnu.org/viewcvs?rev=252389&root=gcc&view=rev
Log:
PR c++/81586 - valgrind error in output_buffer_append_r with -Wall
gcc/C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
--- Comment #8 from Martin Sebor ---
Author: msebor
Date: Thu Aug 10 17:40:11 2017
New Revision: 251029
URL: https://gcc.gnu.org/viewcvs?rev=251029&root=gcc&view=rev
Log:
PR c++/81586 - valgrind error in output_buffer_append_r with -Wall
gcc/Ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
Martin Sebor changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
--- Comment #6 from David Binderman ---
(In reply to Martin Sebor from comment #5)
> Patch: https://gcc.gnu.org/ml/gcc-patches/2017-07/msg01866.html
Did this patch ever get into trunk gcc ?
I have some evidence that gcc trunk revision 250947
do
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
Martin Sebor changed:
What|Removed |Added
Keywords||patch
--- Comment #5 from Martin Sebor -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
Martin Sebor changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
--- Comment #3 from Martin Sebor ---
I don't see a problem with the code in maybe_warn. It does this:
/* Buffer for the directive in the host character set (used when
the source character set is different). */
char hostdir[32];
...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81586
--- Comment #1 from David Binderman ---
The following much reduced C++ code seems to demonstrate the bug:
extern "C" int snprintf(char *, unsigned long, const char *...) ;
struct S {
char * a;
};
void f( S * af)
{
snprintf(af->a