commit | 19370955884ff0c49328956227c302225f4a014b | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Sun Jan 03 22:27:32 2016 +1100 |
committer | David Gibson <david@gibson.dropbear.id.au> | Sun Jan 03 22:27:32 2016 +1100 |
tree | 744f639f9ff5feae8cd8d27df1201e3fbd65c251 | |
parent | d0b3ab0a0f46ac929b4713da46f7fdcd893dd3bd [diff] |
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: Anton Blanchard <anton@samba.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>