Commit b46dbc6c by Arnaud Charlet Committed by Arnaud Charlet

re PR ada/54845 ([trunk/gcc/c-family/c-ada-spec.c:3114]: (error) Buffer is accessed out of bounds.)

2012-10-10  Arnaud Charlet  <charlet@adacore.com>
        
PR ada/54845
	* c-ada-spec.c (print_ada_struct_decl): Increase buf size.

From-SVN: r192290
parent 22ac2c2f
2012-10-10 Arnaud Charlet <charlet@adacore.com>
PR ada/54845
* c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54194
......
......@@ -3068,7 +3068,7 @@ print_ada_struct_decl (pretty_printer *buffer, tree node, tree type,
tree tmp;
int is_union =
TREE_CODE (node) == UNION_TYPE || TREE_CODE (node) == QUAL_UNION_TYPE;
char buf[16];
char buf[32];
int field_num = 0;
int field_spc = spc + INDENT_INCR;
int need_semicolon;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment