Skip to content

chardet stuck in infinty loop #183

@JakobDev

Description

@JakobDev

If you try to detect the encoding in some files, it will stuck in infinity loop. e.g.:

import chardet
f = open("/initrd.img","rb")
b = f.read()
f.close()
chardet.detect(b)

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