#272 indexND of Empty pdls can segfault

critical
closed-duplicate
core (120)
9
2014-08-31
2011-05-25
No

$a = whichND(pdl(0)); # generate a NULL PDL
$b = zeroes(5,5);
$c = ones(5,5);
$b->indexND($a) .= $c->indexND($a);
Segmentation fault

Since this is my code I suppose I should fix it. Thus this bug is largely a reminder to me.

Discussion

  • Chris Marshall

    Chris Marshall - 2011-07-27
    • priority: 5 --> 9
     
  • Chris Marshall

    Chris Marshall - 2011-08-05

    This is the same bug as #3294808. The key feature is
    range slices with an Empty index array (not just Null).
    I'm not sure what the difference is though....

     
  • Chris Marshall

    Chris Marshall - 2011-08-05
    • summary: indexND of null pdls can segfault --> indexND of Empty pdls can segfault
    • status: open --> open-duplicate
     
  • Craig DeForest

    Craig DeForest - 2011-09-17

    Bug fixed in Git.
    Thanks for reporting the problem!

     
  • Craig DeForest

    Craig DeForest - 2011-09-17
    • status: open-duplicate --> closed-duplicate
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks