]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Oct 2019 15:49:52 +0000 (15:49 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Oct 2019 15:49:52 +0000 (15:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276664 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.target/i386/pr71801.c

index 8db137ec5b7d08fef0da5524e7b4d00b25612c82..4f1cb190233930a958ff3452a966554fe5a97507 100644 (file)
@@ -16,7 +16,7 @@ static int get_label_uuid(char *p1) {
 }
 void uuidcache_addentry(char *p1) { __builtin_memcpy(&c, p1, sizeof(c)); }
 void uuidcache_init() {
-  char d[16];
+  char d[sizeof(a) + sizeof(c)];
   get_label_uuid(d);
   uuidcache_addentry(d);
 }