Skip to content

Out of bounds memory access #2

@lyudalev

Description

@lyudalev

mser/mser.cpp

Line 264 in 7347d00

while (boundaryPixels[priority].empty() && (priority < 256))

The conditions order should be inverted: first check that priority is less than 256, next check that boundaryPixels is empty at this index. That is, "while (priority < 256 && boundaryPixels[priority].empty())". Otherwise, the boundaryPixels is accessed beyond its bounds when the priority reaches 256.

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