Skip to content

The last segment of chunksize will be in wrong length(188-sync_offset) if there's a resync #1

Description

@cnrting

for example:
chunksize=8
sync_offset=40
these code here:

        if sync_offset != 0:
            print('Resync')
            data = data[sync_offset:]

the data's length will change to 188*8-40 and will cause unpack error when unpack the last segment of chunksize cause it's length has only 148 bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions