Skip to content

test suite crashes in nearestscale #3

@rtandy

Description

@rtandy

The test suite crashes at scale.c:175 in nearestscale. The reason seems to be the way nearestscale is invoked:

        nearestscale(&img, 1280, 1024, 1280, to);

In nearestscale, width and bytesperline are the same which causes jdy to be negative -- or rather, since it's unsigned, positive and very large. At the end of the first outer loop it gets added to newBuf, causing a segfault on the next access to newBuf at line 175.

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