dc's stack breaks when doing modulo-0
Markus Gothe
nietzsche at lysator.liu.se
Thu May 9 07:52:47 UTC 2019
Totally depends on the architecture how things are trapped etc...
//M
Sent from my BlackBerry — the most secure mobile device
Original Message
From: wharms at bfs.de
Sent: 9 May 2019 09:03
To: busybox at busybox.net
Reply to: wharms at bfs.de
Subject: Re: dc's stack breaks when doing modulo-0
Am 08.05.2019 19:31, schrieb Markus Gothe:
>
> dc -e '4 0 % p' mess up the stack so bad that my MIPS kernel traps it and reboots.
>
> I think we should, like the regular dc, check for 0 as a divider when doing modulo.
>
Did you forward this to the mips kernel mailing list ?
user space programs should never be able to confuse the kernel.
re,
wh
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list