[erlang-bugs] R12B01 erl_misc_utils.c stack-trashing bug, + a patch

Bjorn Gustavsson bgustavsson@REDACTED
Wed Jul 29 16:40:51 CEST 2009


On Wed, Jul 29, 2009 at 10:34 AM, Michael Turner<leap@REDACTED> wrote:
>
> Was trying to build on a i386_unknown_freebsd4.10, with a gcc about 10
> years old.  The build died in /lib/parsetools/src.  gdb revealed
> revealed a trashed stack.
>
> The source of the problem became clear after narrowing it down to a
> function in erl_misc_utils.c.  There are assignments to mib[0] and
> mib[1], with mib declared size zero. (Yes.  sizeof (mib) == 0.  The
> first time I've ever seen that.  And the last, I hope.)

Thanks for the bug report and patch.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB


More information about the erlang-bugs mailing list