diff options
author | Arnaud Charlet <charlet@adacore.com> | 2012-10-10 08:09:25 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-10-10 10:09:25 +0200 |
commit | b46dbc6cc83e38dd5b1b9596844660a8f769fbd0 (patch) | |
tree | 47a73e4e72b58cb959792c74bc3f897b02a08d62 /gcc | |
parent | 22ac2c2f1862cfb7cb2719dc5b65603b62f4391a (diff) | |
download | gcc-b46dbc6cc83e38dd5b1b9596844660a8f769fbd0.zip gcc-b46dbc6cc83e38dd5b1b9596844660a8f769fbd0.tar.gz gcc-b46dbc6cc83e38dd5b1b9596844660a8f769fbd0.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-ada-spec.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 470d1b6..9a438f0 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 4f38a63..36a86e5 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -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; |