Re: linux-4.4-rc3/scripts/dtc/libfdt/fdt.c:88: code that relies on undefined behaviour ?

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

 




+devicetree-compiler list

On Mon, Nov 30, 2015 at 12:02 PM, David Binderman <dcb314@xxxxxxxxxxx> wrote:
> Hello there,
>
> [linux-4.4-rc3/scripts/dtc/libfdt/fdt.c:88]: (warning) Invalid test for overflow 'p+len<p'. Condition is always false unless there is overflow, and overflow is UB.

Upstream dtc needs to be fixed first. Patches welcome.

>
> Source code is
>
>     if (p + len < p)
>         return NULL;
>
> Suggest code rework.
>
> Regards
>
> David Binderman
>
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux