mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-07 13:45:07 -05:00
Currently, attempting to divide by zero in an integer expression in a dts file will cause dtc to crash with a division by zero (SIGFPE). This patch corrects this to properly detect this case and raise an error. Reported-by: Anton Blanchard <anton@samba.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
5 lines
37 B
Text
5 lines
37 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
prop = < (1/0) >;
|
|
};
|