[erlang-patches] trivial bug in jinterface

Vlad Dumitrescu vladdu55@REDACTED
Fri Feb 1 09:58:54 CET 2013


Hi!

I found a small problem in jinterface. It has been around for a while now,
it happens in a corner case that probably nobody ever uses.

In OtpErlangTuple(OtpErlangObject[], int, int), when the size of the slice
used is 0, then the elems fields remains uninitialized, it is the parameter
that gets assigned.

I used master as base, I hope it's still possible to do that.

git fetch git://github.com/vladdu/otp.git tuple_constructor_bug

https://github.com/vladdu/otp/compare/tuple_constructor_bug
https://github.com/vladdu/otp/compare/tuple_constructor_bug.patch

Given that there are no other tests for jinterface at this level, do you
want me to write one for this case?

best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130201/d04492cd/attachment.htm>


More information about the erlang-patches mailing list