summaryrefslogtreecommitdiffstats
path: root/src/sftp.c
Commit message (Collapse)AuthorAgeFilesLines
* sftp: Fix size checkAndreas Schneider2015-05-051-5/+7
| | | | | | CID: #1296588 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* sftp: Add bound check for sizeAndreas Schneider2015-05-041-1/+2
| | | | | | CID: #1238630 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* Fix leak of sftp->ext when sftp_new() failsKevin Fan2015-04-141-0/+2
| | | | | Signed-off-by: Kevin Fan <kevinfan@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* sftp: Fix a possible integer overflow.Andreas Schneider2015-01-141-2/+6
| | | | | | | CID: #1238630 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* sftp: Use a declared variable for data len.Andreas Schneider2015-01-141-6/+7
| | | | | | | CID: #1238632 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* sftp: Fix memory leak on realloc failureTobias Klauser2015-01-141-6/+9
| | | | | | | | | | If realloc of sftp->ext->name or sftp->ext->data fails, the memory previously allocated for the respective member is leaked. Fix this by storing the return value of realloc() in a temporary variable which only gets assigned to the respective sftp->ext member on success. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* Fix sftp endianess bugsAris Adamantiadis2014-08-061-29/+32
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* buffers: adapt sftp.c to ssh_buffer_(un)pack()Aris Adamantiadis2014-08-061-374/+226
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* src: Define MAX_BUF_SIZE globally and use it.Joseph Southwell2014-02-021-1/+1
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* src: Rename buffer_add_data() to ssh_buffer_add_data().Andreas Schneider2014-01-191-4/+4
|
* src: Do not use deprecated functions.Andreas Schneider2014-01-161-2/+2
|
* src: Update my mail address.Andreas Schneider2014-01-071-1/+1
|
* src: Remove enter_function() and leave_function().Andreas Schneider2013-07-141-11/+7
|
* src: Migrate to SSH_LOG.Andreas Schneider2013-07-141-16/+16
|
* sftp: more flexibility on channelsAris Adamantiadis2013-07-131-0/+31
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* CVE-2012-4559: Make sure we don't free name and longname twice on error.Andreas Schneider2012-11-141-10/+16
|
* sftp: Don't leak owner and group in sftp_parse_attr_4.Andreas Schneider2012-10-121-6/+15
|
* sftp: Fix a possible null pointer dereference in sftp_async_read.Andreas Schneider2012-10-071-1/+6
|
* sftp: Harden sftp_extension_supported() against null pointers.Andreas Schneider2012-10-051-2/+10
|
* sftp: Fix a memory on error in sftp_opendir().Andreas Schneider2012-10-051-0/+1
|
* build: Fix missing struct in_addr warning.Andreas Schneider2012-07-171-0/+1
|
* sftp: Fix bug in sftp_mkdir not returning on error.Andreas Schneider2012-07-171-0/+1
| | | | resolves: #84
* sftp: Fix memory leak in sftp_free() on server.Andreas Schneider2012-02-041-0/+3
| | | | Thanks to Tom Judge for the report.
* priv: Start to remove enter_function.Andreas Schneider2011-09-181-65/+0
|
* error: Use macros for error functions.Andreas Schneider2011-09-171-8/+8
|
* sftp: Handle short reads of sftp_async_read().Jonas Jonsson2011-08-291-3/+2
| | | | | | | | sftp_async_read() and sftp_async_read_begin() assume that the whole read will be successful but when this is not the case, the offset will be wrong. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* sftp: Reset eof on seek operations.Andreas Schneider2011-05-261-0/+3
| | | | This fixes bug #48.
* Fix assertion with Visual Studio because of %zu.Andreas Schneider2011-04-151-2/+2
|
* sftp: Fixed double-free in sftp_unlink().Mark Riordan2011-04-081-1/+3
|
* sftp: Fixed a memory leak in sftp_xstat.Andreas Schneider2010-12-271-1/+4
| | | | Thanks to dsc for the bug report.
* Removed references to ssh_buffer_get_beginAris Adamantiadis2010-10-031-6/+6
|
* Convert sftp.c to ssh_channel_readAris Adamantiadis2010-10-011-6/+22
|
* misc: Rename libssh/ to src/Andreas Schneider2010-09-061-0/+3207