<div dir="ltr">As far as I can tell there are no out of bounds checks in "assign", so when it calls memcpy it just overrides some part of the data.table structure that it shouldn't. A simple out of bounds check would fix the issue.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 2, 2013 at 3:37 AM, Arunkumar Srinivasan <span dir="ltr"><<a href="mailto:aragorn168b@gmail.com" target="_blank">aragorn168b@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
Hello,
</div><div><br></div><div>I saw this question on SO yesterday: <a href="http://stackoverflow.com/questions/16877027/negative-number-of-rows-in-data-table-after-incorrect-use-of-set" target="_blank">http://stackoverflow.com/questions/16877027/negative-number-of-rows-in-data-table-after-incorrect-use-of-set</a></div>
<div><br></div><div>I think this is a bug in "set". But unfortunately, `set` calls for c-code internally and am not good at using gdb within R. Any ideas of what's the problem here? </div><div><br></div><div>
Thanks,</div><div><div>Arun</div><div><br></div></div>
<br>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br></blockquote></div><br></div>