Skip to content

Corrupted file block #89

@doilliob

Description

@doilliob

The race in node_modules@marsaud\smb2\lib\api\readFile.js (createPackets).
offset is increased after SMB2Request, which can call createPackets via callback.
After that offset is increased twice. So we have duplicated request and do not send request for one offset.
We can get the next request sequence with offsets:

100500
100600
<----- callback from SMB2Request
100600
<----- increased twice
100800

So we have no request with 100700 offset.

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