mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
4814c5f653
Copy what gcc's libstdc++ does for vectors to avoid overflows: 1. Define a max size macro and assert against it Note that we don't assert but actually check, because this needs to abort even if assertions are disabled. 2. Don't do fancy math to compute new capacity. Just size *= 2 instead and be careful about overflow. |
||
---|---|---|
.. | ||
a11y | ||
css | ||
gdk | ||
gsk | ||
gtk | ||
headless | ||
introspection | ||
reftests | ||
tools | ||
meson.build | ||
testutils.c | ||
testutils.h |