Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

bug fix #200

@RayCh001

Description

@RayCh001

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions