Re: [PATCH 1/2] Fix nonnull errors reported by UBSAN with GCC 7.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 6, 2017, 08:57 UTC
- Message-ID
- <alpine.DEB.2.20.1704061056020.4268@virtualbox>
- In-Reply-To
- <295981e7-d2e9-d3db-e32d-8dd80ca47136@suse.cz>
Hi Martin,
On Thu, 6 Apr 2017, Martin Liška wrote:
> Following patch fixes issues that can be seen with -fsanitize=undefined > on GCC 7.
The commit message says:
Memory functions like memmove and memcpy should not be called with an argument equal to NULL.
But the patch is not about the pointer arguments, it is about the size argument. So I would suggest to say
Memory functions like memmove and memcpy should only be called with positive sizes.
Ciao, Johannes