Skip to content

Buffer overflows on malformed input #12

Closed
@grignaak

Description

shoco_decompress has buffer overflows in two places when given malformed input.

I would submit a patch but shoco_decompress returns a size_t and I am unsure how you would like to signal the error in the API.

The two places are these:

  • if the input ends directly after an 0x00 code
  • if the input ends midway through the packed bytes (for example, directly after any byte with the high-bit set that is not itself immediately preceded by the 0x00 code.)

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