This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] warn on overflow in calls to allocation functions (bugs 77531 and 78284)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 09 Dec 2016 14:26:19 +0100
- Subject: Re: [PATCH] warn on overflow in calls to allocation functions (bugs 77531 and 78284)
- Authentication-results: sourceware.org; auth=none
- References: <204efcec-649f-34a1-22a1-161d1d98ea95@gmail.com> <b1ec8b6d-c583-2d8d-4955-7ad623d05b8a@gmail.com> <9d8970d5-49b8-ac3d-8474-dd3e462399df@gmail.com> <6dff7859-ad37-f94d-a472-9d550043243c@gmail.com>
FAIL: gcc.dg/attr-alloc_size-3.c (test for warnings, line 445)
FAIL: gcc.dg/attr-alloc_size-3.c (test for excess errors)
Excess errors:
/daten/aranym/gcc/gcc-20161209/gcc/testsuite/gcc.dg/attr-alloc_size-3.c:244:3: warning: product '65535 * 65535' of arguments 1 and 2 exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
/daten/aranym/gcc/gcc-20161209/gcc/testsuite/gcc.dg/attr-alloc_size-3.c:298:3: warning: argument 1 value '4294967294' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
/daten/aranym/gcc/gcc-20161209/gcc/testsuite/gcc.dg/attr-alloc_size-3.c:299:3: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."