Validate decoded image dimensions

They are expected to be a certain size, so verify this so no server
tries to do something broken.
This commit is contained in:
Pierre Ossman
2019-12-23 15:37:48 +01:00
parent b8d1a8bb57
commit 4babdf33bd
4 changed files with 13 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ None
| flush | () | Resume processing the render queue unless it's empty
| fillRect | (x, y, width, height, color, from_queue) | Draw a filled in rectangle
| copyImage | (old_x, old_y, new_x, new_y, width, height, from_queue) | Copy a rectangular area
| imageRect | (x, y, mime, arr) | Draw a rectangle with an image
| imageRect | (x, y, width, height, mime, arr) | Draw a rectangle with an image
| startTile | (x, y, width, height, color) | Begin updating a tile
| subTile | (tile, x, y, w, h, color) | Update a sub-rectangle within the given tile
| finishTile | () | Draw the current tile to the display