dc's stack breaks when doing modulo-0

walter harms wharms at bfs.de
Thu May 9 07:03:26 UTC 2019



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


More information about the busybox mailing list