dtc icon indicating copy to clipboard operation
dtc copied to clipboard

A possible case to hang the compiler

Open Escapingbug opened this issue 3 years ago • 2 comments
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.

Escapingbug avatar Dec 11 '21 12:12 Escapingbug

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.

dgibson avatar Dec 29 '21 04:12 dgibson

Ok, I've applied a fix, it would be great if you can check it.

dgibson avatar Dec 29 '21 06:12 dgibson

Closing, since there's been no response.

dgibson avatar Feb 02 '23 06:02 dgibson