Check for overflow when allocating RcBox
commit61ca2e4c8503762006eea18a6316e3b151d0bf92
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 3 Jul 2018 14:55:24 +0000 (3 15:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Jul 2018 09:11:42 +0000 (9 10:11 +0100)
tree9cf326b4514f1da05ac6919bbd0e17c988d09d14
parent7c4ac58938187a431db0651e383dda6e098cff07
Check for overflow when allocating RcBox

Since we're over-allocating the passed block size, we need to check that
we're not overflowing gsize when computing the actual allocation size.
glib/garcbox.c
glib/grcbox.c
glib/grcboxprivate.h