issue with erlang decoding of big numbers
Paul Mineiro
paul-trapexit@REDACTED
Sat Jun 13 17:35:34 CEST 2009
Good to know I'm not crazy, however that patch only changes ei_decode_big
(), and the problem is bigger than that. Other functions are treating the
number as a LSB-first sequence of 16 bit values, but since the *actual*
format is an LSB-first sequence of 8 bit values, this will only work on a
little endian system. For an example, see ei_big_comp().
This is enough for me to decide this is a real bug and not me tripping so
I'll dive in and fix all the uses.
Thanks!
-- p
On Sat, 13 Jun 2009, Paul Guyot wrote:
>
> Le 13 juin 09 à 08:36, erlang-bugs-digest-help@REDACTED a écrit :
>
> > De : Paul Mineiro <paul-trapexit@REDACTED>
> > Date : 13 juin 2009 08:36:27 HAEC
> > À : erlang-bugs@REDACTED
> > Objet : issue with erlang decoding of big numbers
>
> [...]
>
> > the problem is so pervasive that i'm pausing to fix the issue to get
> > some guidance from the OTP team about what is intended here. am i
> > missing
> > something?
>
> This bug was reported in October 2008 with a patch :
> http://erlang.org/pipermail/erlang-bugs/2008-October/001023.html
>
> AFAIK, it is still not fixed in R13B01.
>
> Regards,
>
> Paul
>
>
More information about the erlang-bugs
mailing list