dtc
dtc copied to clipboard
A possible case to hang the compiler
trafficstars
/dts-v1/;
/ {
clocks = <&ref &ref>;
ref: poc {
phandle = <1>;
#clock-cells = <0xffffffff>;
};
};
During checks, in function check_property_phandle_args, the 0xffffffff value could trigger an integer overflow which will keep us in the loop forever.
Thanks for the report. Sorry it's taken me so long to look at it. Certainly looks like a bug, I've made an automated test case and I'm investigating now.
Ok, I've applied a fix, it would be great if you can check it.
Closing, since there's been no response.