Skip to content

photo: fix integer overflow#8877

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
alalek:fix_integer_overflow
Jun 9, 2017
Merged

photo: fix integer overflow#8877
opencv-pushbot merged 1 commit intoopencv:masterfrom
alalek:fix_integer_overflow

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Jun 9, 2017

There is no cast to wide integer type:

    std::numeric_limits<ST>::max() * std::numeric_limits<ST>::max()

There is no cast to wide integer type:
    std::numeric_limits<ST>::max() * std::numeric_limits<ST>::max()
@mshabunin mshabunin self-assigned this Jun 9, 2017
@mshabunin
Copy link
Copy Markdown
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit e665be1 into opencv:master Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants