glib/gobject/tests
Philip Withnall 6110caea45 gobject: Use g_memdup2() instead of g_memdup() in obvious places
Convert all the call sites which use `g_memdup()`’s length argument
trivially (for example, by passing a `sizeof()`), so that they use
`g_memdup2()` instead.

In almost all of these cases the use of `g_memdup()` would not have
caused problems, but it will soon be deprecated, so best port away from
it.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Helps: #2319
2021-02-04 17:51:01 +00:00
..
.gitignore .gitignore updates 2015-10-23 11:28:03 -04:00
autoptr.c tests: Add some assertions to avoid unused variable warnings on Clang 2020-02-24 16:18:58 +00:00
binding.c binding: Use g_assert_*() in binding tests rather than g_assert() 2019-11-15 11:06:14 +00:00
boxed.c glib: Avoid redefining GLIB_DISABLE_DEPRECATION_WARNINGS 2020-07-27 15:41:09 +01:00
closure-refcount.c tests: Fix closure-refcount to preserve old semantics 2019-02-28 07:05:29 +01:00
closure.c Fix the closure test in continuous 2014-05-30 10:22:35 -04:00
dynamictests.c tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
enums.c gobject: Add to_string() functions for Enum and Flags types 2017-03-30 09:52:28 +01:00
flags.c Add unit test for flags validation 2018-11-01 01:41:32 +03:00
genmarshal.py Merge branch '1792-again-marshal-params' into 'master' 2019-07-29 11:45:07 +00:00
ifaceproperties.c tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
marshalers.list Add more tests for signal emissions 2012-03-02 17:13:04 +01:00
meson.build build: Drop unused G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 2020-05-19 16:20:31 +01:00
mkenums.py glib-mkenums: allow optional 'since' tag 2020-05-14 17:00:54 +02:00
object.c gobject: re-allow finalization from constructor() 2014-02-15 10:20:53 -05:00
param.c gobject: Use g_memdup2() instead of g_memdup() in obvious places 2021-02-04 17:51:01 +00:00
private.c glib: Avoid redefining GLIB_DISABLE_DEPRECATION_WARNINGS 2020-07-27 15:41:09 +01:00
properties.c tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
qdata.c gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
reference.c gobject: Fix strict aliasing warnings with g_set_object() 2020-02-18 12:15:52 +00:00
signal-handler.c Add a performance test for signal connection 2015-05-27 14:41:19 -04:00
signals.c gobject: Add g_{param_spec,signal}_is_valid_name() functions 2020-03-04 14:46:28 +00:00
taptestrunner.py tests: Avoid writing ever increasing sequence of null bytes to test logs 2018-12-12 12:57:51 +01:00
testcommon.h gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
testing.c tests: Add a test for g_assert_finalize_object() 2019-10-18 15:55:27 +01:00
threadtests.c glib: Avoid redefining GLIB_DISABLE_DEPRECATION_WARNINGS 2020-07-27 15:41:09 +01:00
type.c tests: Remove unneeded ";" in G_DEFINE_INTERFACE_WITH_CODE 2019-07-29 17:28:01 +02:00
value.c gvalue: Do copy non-interned strings 2020-06-23 10:30:55 +00:00