gtk/testsuite/gdk
Benjamin Otte 4814c5f653 array: Don't overflow array size
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.
2024-05-10 21:22:03 -04:00
..
bad-image-data Add more texture load tests 2023-05-14 07:50:11 -04:00
clipboard-data Make clipboard tests run installed 2021-04-30 07:47:19 -04:00
image-data gdk: Improve test coverage 2022-07-16 09:43:46 -04:00
array.c Force g_test_init to cooperate 2021-04-12 21:22:46 -04:00
arrayimpl.c array: Don't overflow array size 2024-05-10 21:22:03 -04:00
cairo.c Force g_test_init to cooperate 2021-04-12 21:22:46 -04:00
clipboard-client.c testsuite: Avoid a compiler warning 2021-06-17 09:37:45 -04:00
clipboard.c Make clipboard tests work with portals 2022-09-07 08:45:31 -04:00
contentformats.c testsuite: Replace g_random_*() with g_test_rand_*() 2024-01-03 16:05:25 +01:00
contentserializer.c Add contentserializer tests for textures 2021-09-17 00:25:22 +02:00
cursor.c Force g_test_init to cooperate 2021-04-12 21:22:46 -04:00
display.c testsuite: Improve test coverage 2023-06-04 09:04:25 -04:00
displaymanager.c testsuite: Improve test coverage 2023-06-04 09:04:25 -04:00
dmabufformats.c dmabufformats: Include gdkdmabuffourccprivate.h 2024-02-13 14:15:32 +01:00
dmabuftexture.c dmabuftexture: Include gdkdmabuffourccprivate.h 2024-02-13 14:15:32 +01:00
encoding.c testsuite: Cosmetics 2023-05-12 19:52:42 -04:00
gdk.test.in testsuite: Run some installed tests exclusively 2021-05-17 07:16:42 -04:00
glcontext.c testsuite: Replace g_random_*() with g_test_rand_*() 2024-01-03 16:05:25 +01:00
gltexture.c gl: Turn has_foo flags into GdkGLFeatures 2024-03-16 13:44:02 +01:00
image.c loaders: Make it possible to load png options 2024-04-28 23:42:02 -04:00
keysyms.c Add some more keysyms tests 2023-03-29 07:35:24 -04:00
memorytexture.c testsuite: Fix another ubsan warning 2024-04-21 22:24:02 -04:00
meson.build Apply 1 suggestion(s) to 1 file(s) 2024-02-11 12:04:21 +00:00
popuplayout.c Improve gdk test coverage 2023-05-13 21:56:29 -04:00
rectangle.c Fix scan-build warning 2023-05-03 15:32:19 -04:00
rgba.c Revert "Merge branch 'rgba-new-from-string' into 'main'" 2023-12-02 10:55:35 +05:45
seat.c Force g_test_init to cooperate 2021-04-12 21:22:46 -04:00
subsurface.c subsurface: Some api revision and documentation 2024-04-15 19:53:46 -04:00
texture-threads.c testsuite: Don't #include <gsk/gl/gskglrenderer.h> 2024-01-07 14:47:22 +01:00
texture.c png: Don't set a size limit when saving 2024-01-07 07:22:53 +01:00
toplevellayout.c Improve gdk test coverage 2023-05-13 21:56:29 -04:00