Menu

#286 Check strcpy arguments equality in sdas

None
closed-fixed
None
5
2018-06-27
2018-06-19
No

I was unable to compile source code on OSX if the sources was at the same level as the Makefile.
After some debugging it turned out that the strcpy was called with two identical arguments which generated an error. The attached patch fixes this issue.

1 Attachments

Discussion

  • Philipp Klaus Krause

    Thanks for spotting the bug and for the proposed fix.

    I think it could still happen that the destination and source strings overlap, even when the arguments are not identical, so in [r10452], I choose an alternative solution, that also deals with that case.

    Could you test that it fixes your issue?

    Philipp

     
    • Márton Miklós

      Márton Miklós - 2018-06-27

      Hello Philipp,

      I agree that you approach is better than mine.

      I have tested it on OSX and works fine.

      Thank you for your time and efforts!

       
  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause
    • Group: -->
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
     

Log in to post a comment.