Commit 19370955 authored by David Gibson's avatar David Gibson
Browse files

Prevent crash on division by zero



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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent d0b3ab0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment