#14 patch for bug 916259

closed-accepted
bug fix (4)
8
2004-10-23
2004-10-21
No

bug 916259 was caused in the change of the function
grow_and_copy from version 0.7.4 to 0.8.0.
strlcat might be a more safe function, but in this case
it resluted in an error when dest==NULL. strlcat was
given a newly allocated chunk of memory in dest that
was not NULL terminated, so the reult string got some
arbitary junk at the beginning.

This patch should fix the problem.

Discussion

  • Terje Bråten

    Terje Bråten - 2004-10-21

    diff to file commands.c

     
  • Terje Bråten

    Terje Bråten - 2004-10-21

    alternative diff to file commands.c

     
  • Terje Bråten

    Terje Bråten - 2004-10-21
    • priority: 5 --> 8
     
  • Terje Bråten

    Terje Bråten - 2004-10-21

    Logged In: YES
    user_id=1139667

    Here is an alternative patch, that makes the function
    grow_and_copy even more safe for future use.

     
  • David Smith

    David Smith - 2004-10-23
    • assigned_to: nobody --> courierdave
    • status: open --> closed-accepted
     
  • David Smith

    David Smith - 2004-10-23

    Logged In: YES
    user_id=569736

    Patch added to CVS.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks