Page MenuHomeFreeBSD

Abort transfer if fseeko() fails.
ClosedPublic

Authored by jhb on Apr 16 2020, 10:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 26, 9:59 AM
Unknown Object (File)
Mon, May 20, 8:51 PM
Unknown Object (File)
May 2 2024, 2:17 AM
Unknown Object (File)
Mar 11 2024, 12:41 PM
Unknown Object (File)
Mar 11 2024, 12:41 PM
Unknown Object (File)
Mar 11 2024, 12:41 PM
Unknown Object (File)
Mar 11 2024, 12:41 PM
Unknown Object (File)
Mar 8 2024, 11:46 AM
Subscribers

Details

Summary

CID: 1420215

Test Plan
  • did some simple transfers with windowsize of 1 and 16

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Hm. How did you discover this problem? Did you try to read an unseekable file or something? And have you run the unit tests with this change?

I have not seen this, this is based on the coverity report that you forwarded me a while back. I didn't run the tests at first as I didn't think they would really cover this well, but they do at least cover that normal transfers still work, so I ran them and they passed.

For consistency, shouldn't you also tftp_log(LOG_ERR, ...)?

  • Log seek_file errors.
This revision is now accepted and ready to land.Apr 19 2020, 12:43 AM
This revision was automatically updated to reflect the committed changes.