Subject: Re: [libssh2] #267: file_read_publickey access violation

Re: [libssh2] #267: file_read_publickey access violation

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Mon, 15 Jul 2013 10:29:46 -0000

#267: file_read_publickey access violation
-------------------------+-------------------------------------------------
  Reporter: wimvdh | Owner:
      Type: defect | Status: new
  Priority: blocker | Milestone: 1.4.3
 Component: SFTP | Version: 1.4.2
Resolution: | Keywords: file_read_publickey access
Blocked By: | violation sp1 crash
                         | Blocks:
-------------------------+-------------------------------------------------

Comment (by wimvdh):

 The -1 needs to be removed:

 if ((sp2 = memchr(sp1, ' ', pubkey_len - (sp1 - pubkey))) == NULL) {

-- 
Ticket URL: <https://trac.libssh2.org/ticket/267#comment:1>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-07-15