-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I'm using the library to try detect compression being used on arbitrary data but for some inputs I get segfaults or crashes.
This example produces a crash:
import lzo, base64
data = base64.b64decode("/wEdADavVXD1oYELeveMr0vHCmYPTPoxqw4HegY2nqHVRtv9df2xsVmz8UULJZKAHD9808mtKmk39dGImf+K2mB/hZP3HE0kGCxETaBN4mH23t7ZT+OeBFB+cqgI1F882YEWCREFc2UQXIfbuPtxCO+mmI8UVUDob17rdF4Wul4ziIpuOQ+TTKmEHUtTTtV5Z19JvC35U5mILuXN0yrVOCmQEXdMPisHGcr0roFHeyuURhMcn7h0bfGWl3unZ++6x051IydsKu0=")
lzo.decompress(data,False,500,algorithm='LZO1A')
$ python x.py
free(): corrupted unsorted chunks
Aborted (core dumped)
Metadata
Metadata
Assignees
Labels
No labels