Menu

#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

     
  • Ralph Böhme

    Ralph Böhme - 2008-06-24

    corrected patch

     
  • 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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.