Skip to content

MSVC2022 's auto vectorizer seems break ip::resize #2406

@seph14

Description

@seph14

try the code below:

    auto img = Surface8u::create(72,63,false);
    ip::resizeCopy(*img, img->getBounds(), ivec2(224, 195));

this lead to heap corruption at line 217 of ip::Resize.cpp ->
free( yWeights.weight );

Happens both debug/release, I assume it is related to MSVC's AVX/SSE optimisation that stores 16 bytes instead of 8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions