simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Wed May 4 06:32:42 BST 2016


TL;DR:
  9ba51c7 Fix uninitialized variable in Windows get_file_posn.

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2016-05-04 06:32:42

commit 9ba51c79fa35b336ae6768b127e31b9214980dfb
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=9ba51c79fa35b336ae6768b127e31b9214980dfb;hp=cc9d920c78eaf437d4cf4e7e8ebd9e6ceabf8d04
Author: Tim Kosse <tim.kosse at filezilla-project.org>
Date:   Tue May 3 23:27:57 2016 +0200

    Fix uninitialized variable in Windows get_file_posn.
    
    The Windows implementation of get_file_posn is calling SetFilePointer
    to obtain the current position in the file. However it did not
    initialize the variable holding the high order 32-bit to 0. Thus,
    SetFilePointer either returned -1 to indicate an error or did move the
    file pointer to a different location instead of just returning the
    current position. This change just initializes the variable to 0.
    
    As a result, this bug has caused psftp's reget command to fail
    resuming transfers or to create corrupt files due to setting up an
    incorrect resume offset.

 windows/winsftp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list