#32 Overrun in icalmemory_strdup_and_dequote

closed
nobody
None
5
2012-03-13
2012-02-22
Kent
No

icalmemory_strdup_and_dequote() will march past the null terminator if the last character is a backslash.

Discussion

  • Kent

    Kent - 2012-03-01

    Updated the patch again. The last one was incorrectly leaving the escaped character in the string.

    This patch sets a flag when it writes a null terminator to the destination so the for loop can short-circuit before it tries to read past the end of the source string.

     
  • Allen Winter

    Allen Winter - 2012-03-13

    committed in r1122. Thanks Kent!

     
  • Allen Winter

    Allen Winter - 2012-03-13
    • status: open --> closed
     

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

Sign up for the SourceForge newsletter:





No, thanks