-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] Check image size for overflow and throw if null
Because we don't wont a broken image in the output when a null image is created. This introduces an additional check for null images and a check for image size taken verbatim from QImage internal checks. This fixes an unreported bug that produced a broken image instead of a proper exception in case of size overflow due to QImage internal checks or to out of memory conditions.
- Loading branch information
Showing
1 changed file
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters