You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2023. It is now read-only.
tftp.py have 2 bug at line 218 & 223 .
"self.block = block + 1" should be "self.block = block + self.wrap * 65536 + 1"
since block is set by block no from ack message, block will rotate from 1 to 65536(0), then self.block rotate from 1 to 65536(0) too,
finally ,
"self.fh.seek(self.blksize * (self.block - 1))" would not get right position for file its size > 2**16*512(65536)
tftp.py have 2 bug at line 218 & 223 .
"self.block = block + 1" should be "self.block = block + self.wrap * 65536 + 1"
since block is set by block no from ack message, block will rotate from 1 to 65536(0), then self.block rotate from 1 to 65536(0) too,
finally ,
"self.fh.seek(self.blksize * (self.block - 1))" would not get right position for file its size > 2**16*512(65536)