Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

codec.cc size check incorrect? #12

@EvilTrev

Description

@EvilTrev
if (kBytesPerPixelUNORM8 * width > out_buffer_stride ||
     out_buffer_stride * height < out_buffer_size) {
          // Output buffer too small.
          return false;
     }

If I pass in a buffer with exactly the right size, this would fail. If I passed in a buffer much larger than required, it would also fail? Seems like the logic is inverted on the second condition - unless I'm missing something?

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