platform_external_dtc/tests/division-by-zero.dts
David Gibson b06e55c88b Prevent crash on modulo by zero
1937095 "Prevent crash on division by zero" fixed a crash when attempting
a division by zero using the / operator in a dts.  However, it missed the
precisely equivalent crash with the % (modulus) operator.  This patch fixes
the oversight.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-01-12 19:27:25 +11:00

6 lines
64 B
Text

/dts-v1/;
/ {
prop-div = < (1/0) >;
prop-mod = < (1%0) >;
};