linux-4.5-rc3/arch/arc/kernel/unwind.c:629: undefined behaviour ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>  		 	   		  




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux