linux-4.5-rc3/arch/arc/kernel/unwind.c:629: undefined behaviour ?
Vineet Gupta
Vineet.Gupta1 at synopsys.com
Thu May 19 21:48:19 PDT 2016
What compiler are you using - for me it builds clean here !
-Vineet
On Monday 08 February 2016 07:07 PM, David Binderman wrote:
> Hello there,
>
> [linux-4.5-rc3/arch/arc/kernel/unwind.c:629]: (warning) Invalid test for overflow 'ptr+len<ptr'. Condition is always false unless there is overflow, and overflow is Undefined Behaviour.
>
> Source code is
>
> if (ptr + len < ptr || ptr + len> end)
> return -1;
>
> Suggest code rework.
>
>
> Regards
>
> David Binderman
>
>
More information about the linux-snps-arc
mailing list