glib/glib/tests
Thomas Haller 8b542aac0c array: fix corrupt state of GPtrArray after g_ptr_array_extend_and_steal()
g_ptr_array_extend_and_steal() leaves the GPtrArray in an invalid state,
so if you would try to append another pointer, it leads to a crash.

Also adjust the test case so that it would result in the crash (without
the fix).

Fixes: 0675703af0 ('Adding g_ptr_array_extend_and_steal() function to glib/garray.c')
2020-05-07 08:58:41 +02:00
..
bookmarks tests: Add an overflow test for bookmark file dates 2018-08-06 14:07:27 +01:00
markups gmarkup tests: tab character escape/unescape 2020-04-03 16:30:27 +02:00
.gitignore guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
1bit-mutex.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
4096-random-bytes
642026.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
array-test.c array: fix corrupt state of GPtrArray after g_ptr_array_extend_and_steal() 2020-05-07 08:58:41 +02:00
asyncqueue.c tests: Convert g_assert() to g_assert_*() in glib/tests/asyncqueue.c 2019-03-08 19:46:20 +00:00
atomic.c atomic/tests: test g_atomic_pointer_compare_and_exchange() with const pointers 2019-12-13 15:07:35 +01:00
autoptr.c tests: Add some assertions to avoid unused variable warnings on Clang 2020-02-24 16:18:58 +00:00
base64.c tests: Add base64 tests from §(Test Vectors) of RFC 4648 2019-02-27 10:45:02 +00:00
bitlock.c optimise bitlocks with new atomic operations 2011-05-28 17:39:12 -04:00
bookmarkfile.c tests: Enable G_TEST_OPTIONS_ISOLATE_DIRS for bookmarkfile test 2019-11-05 10:20:15 +00:00
bookmarks.xbel
bytes.c tests: additional test for g_bytes_new_from_bytes() 2018-01-27 11:43:38 -08:00
cache.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
charset.c glib/gcharset: fix leaking g_get_language_names_with_category 2018-09-20 16:08:19 +02:00
checksum.c gchecksum: add SHA-384 support 2017-02-20 12:40:26 +01:00
collate.c Correct collation key generation on OS X 2017-03-08 22:37:29 -05:00
cond.c cond test: Don't make assumptions about struct sigaction member order 2019-08-13 08:41:09 +01:00
convert.c glib/tests/convert.c: Skip tests that aren't meaningful for Windows 2019-06-19 10:55:17 +08:00
dataset.c GDataSet: Add more tests 2014-10-02 14:41:01 -04:00
date.c tests: Update month name check for Greek locale 2019-05-13 23:11:56 +02:00
dir.c
echo-script spawn: add shebang line to script 2018-12-17 16:19:31 -05:00
echo-script.bat glib/tests/spawn-singlethread: Improve test for Windows 2013-11-11 22:38:36 +08:00
empty
environment.c genviron: make g_environ_* case-insensitive on Windows 2018-11-28 11:04:48 +01:00
error.c gerror: Don't leak memory when overwrite warning 2013-11-10 22:40:08 +01:00
fileutils.c tests: Cope with having CAP_DAC_OVERRIDE, even if not euid 0 2020-02-13 17:33:45 +00:00
gdatetime.c gtimezone: fix parsing of Julian day in POSIX TZ format 2020-01-15 14:11:59 +00:00
getpwuid-preload.c Reproducer for the null pw_name returned from getpwuid() 2020-01-15 14:07:20 +01:00
gpoll.c Use lowercase to include winsock2 2018-12-28 15:30:28 +01:00
gutils-user-database.c Reproducer for the null pw_name returned from getpwuid() 2020-01-15 14:07:20 +01:00
guuid.c guuid: Remove support for curly braces and URN UUIDs 2017-02-06 14:40:38 +01:00
gvariant.c gvariant: Limit recursion in g_variant_parse() 2019-10-18 13:53:18 +01:00
gwakeuptest.c tests: Fix data races in gwakeuptest.c 2018-11-04 17:28:58 +01:00
hash.c Fix various signedness warnings in glib/ghash.c 2019-03-17 19:05:35 +01:00
hmac.c ghmac: Add support for G_CHECKSUM_SHA384 to GHmac 2017-02-20 12:40:26 +01:00
hook.c Add some GHookList tests 2011-10-08 19:02:06 -04:00
hostutils.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
include.c glib/tests/include: port to gtester 2013-11-23 00:39:07 -05:00
io-channel.c giochannel: Fix read_line() when nul is not a line terminator 2020-02-24 14:12:30 +00:00
keyfile.c gkeyfile: Fix parsing of new lines in comments 2018-10-30 11:55:30 +00:00
keyfiletest.ini
list.c tests: Don't compare strings by pointer 2020-03-05 09:39:33 +01:00
logging.c tests/logging: Don't hardcode the result of logging a pointer 2018-05-24 23:17:03 +02:00
macros.c Add and use G_SIZEOF_MEMBER() macro 2020-01-21 19:54:55 +04:00
mainloop.c GMainContext - Add tests for !1353 and related situations 2020-02-11 10:53:56 +02:00
mappedfile.c tests: Convert g_assert() to g_assert_*() in glib/tests/mappedfile.c 2019-03-08 19:46:20 +00:00
markup-collect.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
markup-escape.c gmarkup tests: tab character escape/unescape 2020-04-03 16:30:27 +02:00
markup-parse.c tests: Rework markup parsing test to not stop on first failure 2018-10-26 23:23:00 +13:00
markup-subparser.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
markup.c Add a test for g_markup_parse_context_get_element_stack 2014-01-01 17:59:21 -05:00
mem-overflow.c tests: Fix a pragma warning on FreeBSD 2019-08-24 15:49:48 +03:00
meson.build tests: Disable link-time warning for mem-overflow 2020-03-03 23:54:21 +03:00
mutex.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
node.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
once.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
option-argv0.c W32: swap special g_get_prgname() for platform_get_argv0() 2019-04-16 08:40:55 +00:00
option-context.c Merge branch 'allow_NULL_argument_to_parse_strv' into 'master' 2019-08-27 13:17:39 +00:00
overflow.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
pages.ini
pattern.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
private.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
protocol.c testing: Run tests specified with -p in the order specified 2019-04-29 17:28:55 +01:00
queue.c tests: Add unit tests for g_queue_push_nth_link() 2019-05-02 13:53:09 +01:00
rand.c tests: Convert g_assert() to g_assert_*() in glib/tests/rand.c 2019-03-08 19:46:21 +00:00
rcbox.c Test the alignment of the refcounted box allocations 2018-12-18 11:18:43 +00:00
rec-mutex.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
refcount.c glib/tests/refcount.c: Only expect saturation tests to pass on GCC 2019-06-18 16:42:51 +08:00
refstring.c Drop a questionable test from the refstring suite 2018-08-02 12:21:38 +01:00
regex.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
rwlock.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
scannerapi.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
search-utils.c gstrutils: Set locale explicitly for search-utils test 2020-03-18 08:58:02 +00:00
sequence.c tests: Various minor leak fixes in the GLib tests 2018-06-29 12:13:32 +01:00
shell.c gstrfuncs: Add g_strv_equal() 2018-12-17 17:16:03 +00:00
slice.c Drop g_slice_set_config tests 2015-09-12 11:13:45 -04:00
slist.c tests: Don't compare strings by pointer 2020-03-05 09:39:33 +01:00
sort.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
spawn-multithreaded.c Add G_SPAWN_DEFAULT to GSpawnFlags 2013-08-17 13:02:25 -04:00
spawn-singlethread.c gspawn, tests: check passing special chars in args 2018-12-26 23:30:57 +03:00
strfuncs.c tests: Remove redundant non-NULL checks in g_strlcat() test 2019-05-02 13:28:55 +01:00
string.c gtestutils: add g_assert_cmpmem() 2015-08-31 13:59:48 -04:00
test-printf.c Force binary mode for stdout in printf tests 2018-06-11 14:20:34 +00:00
test-spawn-echo.c gthread: move test cases to glib/ 2011-10-16 19:08:59 -04:00
testing-helper.c gtestutils: Add g_test_summary() to add summary metadata to unit tests 2019-05-21 12:33:15 +01:00
testing.c gtestutils: Allow cmpmem() arguments to be NULL iff lengths are zero 2019-09-30 12:05:55 +01:00
thread-pool.c GThreadPool - Add test for !1340 2020-02-07 16:24:48 +02:00
thread.c tests: Don't assume that unprivileged uids are bound by RLIMIT_NPROC 2020-02-13 17:33:45 +00:00
timeout.c tests: Drop unnecessary usage of g_test_bug_base("") 2019-08-21 19:42:27 +03:00
timer.c tests: Ignore deprecated functions in a few main loop and timer tests 2019-07-29 12:27:29 +01:00
tree.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
unicode.c glib: Update Unicode Character Database to version 13.0.0 2020-03-18 14:50:36 +00:00
unix.c glib-unix: Add g_unix_get_passwd_entry() function 2019-11-26 12:17:04 +00:00
uri.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
utf8-misc.c gutf8: Fix length handling in g_utf8_make_valid() 2017-10-25 10:33:48 +01:00
utf8-performance.c glib/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
utf8-pointer.c gunicode: Fix UB in gutf8.c and utf8-pointer test 2019-11-14 18:38:03 +00:00
utf8-validate.c Add a missing check to g_utf8_get_char_validated() 2019-09-14 18:01:22 +02:00
utils.c list, slist: Add g_clear_{s,}list() 2019-11-25 13:09:25 +01:00
win32.c glib/tests/win32.c: Fix test variable types 2019-06-04 20:08:20 +01:00