[gtk/wip/chergert/glproto: 279/526] add check for valid entry size
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 279/526] add check for valid entry size
- Date: Tue, 16 Feb 2021 01:14:32 +0000 (UTC)
commit 956a7cfbfd78bc59c22887cc81f975fd121c7a9d
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 20 12:43:23 2021 -0800
add check for valid entry size
gsk/next/gskgltexturelibraryprivate.h | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gsk/next/gskgltexturelibraryprivate.h b/gsk/next/gskgltexturelibraryprivate.h
index 52aefd469f..8075d7fcd9 100644
--- a/gsk/next/gskgltexturelibraryprivate.h
+++ b/gsk/next/gskgltexturelibraryprivate.h
@@ -188,6 +188,7 @@ gsk_gl_texture_library_can_cache (GskGLTextureLibrary *self,
int width,
int height)
{
+ g_assert (self->max_entry_size > 0);
return width <= self->max_entry_size && height <= self->max_entry_size;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]