You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Best case if you pass negative image dimensions you will get a bad_alloc when the unsigned arguments overflow. Worst case (I saw this on OS X a while back) your machine will lock up and bad_alloc never gets triggered.
We should protect and throw immediately before too much memory is requested.
The text was updated successfully, but these errors were encountered:
* store image width and height in dimensions object
* allow specifying max_size for width and height (default 0xffff)
* throw if width or height are out of range - 0...max_size
Best case if you pass negative image dimensions you will get a bad_alloc when the unsigned arguments overflow. Worst case (I saw this on OS X a while back) your machine will lock up and bad_alloc never gets triggered.
We should protect and throw immediately before too much memory is requested.
The text was updated successfully, but these errors were encountered: