[Bug 2176] New: unchecked returned value from ftruncate

bugzilla-daemon at natsu.mindrot.org bugzilla-daemon at natsu.mindrot.org
Sun Dec 1 04:31:45 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2176

            Bug ID: 2176
           Summary: unchecked returned value from ftruncate
           Product: Portable OpenSSH
           Version: -current
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: loganaden at gmail.com

Created attachment 2378
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2378&action=edit
sftp_unchecked_return

@@ -1253,7 +1253,9 @@ do_download(struct sftp_conn *conn, char
                 "server reordered requests", local_path);
         }
         debug("truncating at %llu", (unsigned long long)highwater);
-        ftruncate(local_fd, highwater);

ftruncate value isn't checked.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list