From 39a4816e40afdcfab063602bd16fee9b6eeb4088 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 25 Nov 2013 10:46:20 +0000 Subject: [PATCH] ubsan.c (ubsan_create_data): Increase the size of the fields array. 2013-11-25 Marek Polacek * ubsan.c (ubsan_create_data): Increase the size of the fields array. From-SVN: r205347 --- gcc/ChangeLog | 4 ++++ gcc/ubsan.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d72dfa6..7bcce37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-11-25 Marek Polacek + + * ubsan.c (ubsan_create_data): Increase the size of the fields array. + 2013-11-25 Richard Biener * tree-dfa.c: Remove unused convert.h include. diff --git a/gcc/ubsan.c b/gcc/ubsan.c index f2b66bf..a16f3eb 100644 --- a/gcc/ubsan.c +++ b/gcc/ubsan.c @@ -390,7 +390,7 @@ ubsan_create_data (const char *name, location_t loc, { va_list args; tree ret, t; - tree fields[3]; + tree fields[5]; vec *saved_args = NULL; size_t i = 0; @@ -428,7 +428,7 @@ ubsan_create_data (const char *name, location_t loc, { /* We have to add two more decls. */ fields[i] = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE, - pointer_sized_int_node); + pointer_sized_int_node); DECL_CONTEXT (fields[i]) = ret; DECL_CHAIN (fields[i - 1]) = fields[i]; i++; -- 2.7.4