#1262 br921 fix to prevent seg-fault

closed-rejected
nobody
None
5
2013-02-06
2013-02-03
Luke V
No

The attached patch prevents a seg-fault by allowing the symbol_search function to gracefully handle empty paths.

1 Attachments

Discussion

  • Cary R.

    Cary R. - 2013-02-06
    • status: open --> closed-rejected
     
  • Cary R.

    Cary R. - 2013-02-06

    This patch does fix the segmentation fault, but this should be handled at a higher level. The elaborate_method_() routine should check for an empty path before calling symbol_search() and should know that an empty path (no object) cannot be a method call. I have a patch that implements this and also has a place holder for handling the function call correctly. I will push what I have shortly and will work on the rest of it when I have time. You need to revert the patch you submitted in your archive or delete the repository and get it again.

     

Log in to post a comment.