mirror of
https://github.com/labwc/labwc.git
synced 2026-02-10 04:27:47 -05:00
scaled-scene-buffer: guard against negative sizes
This commit is contained in:
parent
6305cc0f78
commit
849fd7a96f
4 changed files with 13 additions and 2 deletions
|
|
@ -227,6 +227,9 @@ scaled_scene_buffer_request_update(struct scaled_scene_buffer *self,
|
|||
int width, int height)
|
||||
{
|
||||
assert(self);
|
||||
assert(width >= 0);
|
||||
assert(height >= 0);
|
||||
|
||||
struct scaled_scene_buffer_cache_entry *cache_entry, *cache_entry_tmp;
|
||||
wl_list_for_each_safe(cache_entry, cache_entry_tmp, &self->cache, link) {
|
||||
_cache_entry_destroy(cache_entry, self->drop_buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue