#2 Fix escape_paths in cmdline_afp.c

open-fixed
nobody
None
5
2008-08-15
2008-06-23
No

"escape_path" is memset'ting buffers that are not appropiately sized in calling functions e.g. "cmd_chmod" allocates a buffer[200] but we memset[AFP_MAXPATH].
Patch: don't memset, instead put '\0' string terminator at the end of parsed args.

-Ralph

Discussion

  • Ralph Böhme

    Ralph Böhme - 2008-06-24

    Logged In: YES
    user_id=1377162
    Originator: YES

    It's a pointer dude!
    File Added: patch_escape_paths_cmdline_afp

     
  • Alex deVries

    Alex deVries - 2008-08-15

    Logged In: YES
    user_id=1620345
    Originator: NO

    Applied, thanks.

     
  • Alex deVries

    Alex deVries - 2008-08-15
    • status: open --> open-fixed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks