treeview: Don't create an overly large pixel cache

Desktop / GNOME / GTK - Benjamin Otte [redhat.com] - 5 February 2015 11:57 UTC

GPUs generally have problems when you create a 35000px wide surface. Luckily X catches this and sends a BadAlloc. Which GTK immediately abort()s on.

Testcase included.

https://bugzilla.redhat.com/show_bug.cgi?id=1163579

7eecb16 treeview: Don't create an overly large pixel cache
gtk/gtktreeview.c | 4 +-
testsuite/reftests/Makefile.am | 2 +
testsuite/reftests/treeview-crash-too-wide.ref.ui | 50 +++++++++++++++++++++
testsuite/reftests/treeview-crash-too-wide.ui | 50 +++++++++++++++++++++
4 files changed, 104 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share