https://github.com/GNOME/glib

sort by:
Revision Author Date Message Commit Date
101c8b3 Fixing g_format_size_full() on Windows-x64 For some reasons, the buffer used in the Format struct was not long enough on Windows-x64 and the final null ('\0') character was omitted leading to a limited memory disclosure. 15 May 2019, 08:18:22 UTC
4f5fe35 Merge branch 'fix_g_unichar_totitle' into 'master' Fix g unichar totitle Closes #135 See merge request GNOME/glib!843 14 May 2019, 12:05:30 UTC
7dcaa7e Add the corresponding test for g_unichar_totitle(0) 14 May 2019, 11:38:14 UTC
48d6563 Handling U+0000 explicitely to avoid collision with other cases Fix issue #135 14 May 2019, 11:35:49 UTC
bd8658e Merge branch 'g_format_size_is_broken_on_Windows' into 'master' Fixing g_format_size() on Windows Closes #429 See merge request GNOME/glib!837 14 May 2019, 10:25:30 UTC
6a6ab5b Merge branch 'master' into 'master' tests: Update month name check for Greek locale Closes #1776 See merge request GNOME/glib!839 14 May 2019, 09:52:59 UTC
35c28be tests: Update month name check for Greek locale Update the abbreviated month name in the test to match the actual translation. Otherwise the test fails with false positive. Vocabulary: July (nominative) - Greek: Ιούλιος (abbreviated: Ιούλ) Of July (genitive) - Greek: Ιουλίου (abbreviated: Ιουλ) This is similar to commit 4d215e006ee69bd7a993bf853722993433adbf9a and commit 7fe793e125c316ac34edd8158df5a132cb044bc1. Closes #1776 13 May 2019, 21:11:56 UTC
08f0844 Fixing g_format_size() on Windows It seems that the issue went away on current Window systems. Fix #429 13 May 2019, 12:23:57 UTC
ebd2116 Merge branch 'de' into 'master' Fix typo in German translation See merge request GNOME/glib!835 13 May 2019, 10:48:48 UTC
202ef4a Fix typo in German translation 11 May 2019, 13:34:10 UTC
c252bd1 Merge branch 'wip/tingping/network-address-state' into 'master' gnetworkaddress: Fix parallel enumerations interfering with each other Closes #1771 See merge request GNOME/glib!823 10 May 2019, 17:46:42 UTC
5ba42af gnetworkaddress: Fix parallel enumerations interfering with eachother The parent GNetworkAddress contains a shared list of resolved addresses that is used as a cache for multiple enumerations. This commit ensures that the cache is only set upon completion of DNS lookups and only read once by enumerations to avoid being in a bad state. Fixes #1771 10 May 2019, 17:17:23 UTC
e8b045e Merge branch 'version-bump' into 'master' build: (Long time after) post-release version bump See merge request GNOME/glib!831 10 May 2019, 14:44:56 UTC
83177c0 build: (Long time after) post-release version bump Signed-off-by: Philip Withnall <withnall@endlessm.com> 10 May 2019, 14:09:50 UTC
3149013 Merge branch 'wip/kalev/GRWLock-autoptr' into 'master' Add autoptr support for GRWLock See merge request GNOME/glib!825 10 May 2019, 11:19:42 UTC
676275f Merge branch 'master' into 'master' build: Fix a typo in the test whether _NL_ABALTMON_n is supported Closes #1759 See merge request GNOME/glib!828 10 May 2019, 10:54:45 UTC
e4bd6dd Add autoptr support for GRWLock 10 May 2019, 10:48:20 UTC
93d8482 build: Fix a typo in the test whether _NL_ABALTMON_n is supported The correct spelling is "_NL_ABALTMON_n" rather than "_NL_ALTMON_n". The typo made Meson build think that _NL_ABALTMON_n constants are not supported which was totally wrong. This made g_date_time_format() output incorrect abbreviated month names in some languages. The old configure.ac script was correct here. Bug introduced in commit be4f96b6502c01d2a51d60b7a669c8ef82e22a4d. Closes: #1759 09 May 2019, 23:19:42 UTC
305d850 Merge branch 'wip/desrt/gsocketclient-leak' into 'master' gsocketclient: Fix a leak in the connection code Closes #1774 See merge request GNOME/glib!824 09 May 2019, 16:53:22 UTC
bdefe5f gsocketclient: Fix a leak in the connection code We miss releasing the async operation's reference on a state object in one of the error cases. The call to connection_attempt_remove() (although it calls unref internally) is not sufficient because this is releasing the reference that the list owns. Closes #1774 09 May 2019, 10:57:00 UTC
a1d5395 Merge branch 'autoptr-assertions' into 'master' Various minor cleanups to autoptrs See merge request GNOME/glib!821 08 May 2019, 20:51:58 UTC
6ce9638 Merge branch 'unicode-12.1' into 'master' glib: Update Unicode Character Database to version 12.1.0 See merge request GNOME/glib!822 08 May 2019, 20:48:41 UTC
5a30f85 docs: Improve formatting of g_autoptr() documentation Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 May 2019, 20:21:39 UTC
62be3d5 tests: Use g_assert_*() in autoptr tests rather than g_assert() It gives clearer failure messages, and won’t get compiled out when building with G_DISABLE_ASSERT. Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 May 2019, 20:21:39 UTC
ae47f0d Merge branch 'more-auto-macros' into 'master' Add g_autoqueue See merge request GNOME/glib!474 08 May 2019, 20:19:43 UTC
1d96e94 gmacros: Add g_autoqueue to automatically free queues This works as g_auto(s)list already does, and allows to create queues that are fully auto free'd on destruction. 08 May 2019, 19:25:24 UTC
babe5cd Merge branch 'g_unichar_isxdigit_full_width' into 'master' Getting fullwidth unichar for g_unichar_xdigit(_value) Closes #58 See merge request GNOME/glib!771 08 May 2019, 12:19:30 UTC
64ddd32 glib: Update Unicode Character Database to version 12.1.0 Using commands: ``` glib/gen-unicode-tables.pl -both 12.1.0 path/to/UCD tests/gen-casefold-txt.py 12.1.0 path/to/UCD/CaseFolding.txt \ > tests/casefold.txt tests/gen-casemap-txt.py 12.1.0 path/to/UCD/UnicodeData.txt \ path/to/UCD/SpecialCasing.txt > tests/casemap.txt ``` Using UCD release https://www.unicode.org/Public/zipped/12.1.0/UCD.zip. Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 May 2019, 12:07:55 UTC
47bcc6d Merge branch 'ci-report-debian-stable' into 'master' ci: Keep JUnit report script working on Debian stable See merge request GNOME/glib!820 08 May 2019, 11:56:09 UTC
db849ef ci: Keep JUnit report script working on Debian stable The current Debian stable CI image ships with Python 3.5, so the Meson log to JUnit report script is failing because it's using an API addition present in Python 3.6 or later. Since it's just a cosmetic option for the time stamp, we can get rid of it. 08 May 2019, 11:40:45 UTC
17fb60c Improving code coverage of glib/guniprop.c 07 May 2019, 16:31:04 UTC
ae4eea7 Formating test cases to the new standards - Added comments at the begin of each test case - Changed 'g_assert()' into 'g_assert_xxx()' - Sorted the 'g_test_add_func()' entries 07 May 2019, 16:31:04 UTC
d8cc478 Getting fullwidth for g_unichar_xdigit(_value) Fix issue #58. 07 May 2019, 16:31:04 UTC
76966e6 Merge branch 'wip/ernestask/dtd-fix' into 'master' gschema.dtd: Add target attribute to alias See merge request GNOME/glib!814 07 May 2019, 10:31:53 UTC
0ff9704 Merge branch '1739-freebsd-too' into 'master' tests: Don’t check for libdl on FreeBSD or NetBSD either Closes #1739 See merge request GNOME/glib!810 07 May 2019, 10:26:57 UTC
b17436d Merge branch 'wip/tingping/socketclient-cancel-2' into 'master' gsocketclient: Fix potential critical when cancelling connect Closes #1747 See merge request GNOME/glib!783 06 May 2019, 21:50:25 UTC
3d9a896 gschema.dtd: Add target attribute to alias The implementation requires it, but the DTD doesn’t even mention it. 06 May 2019, 14:26:53 UTC
8811790 Merge branch 'wip/carlosg/appinfo-environment-preconditions' into 'master' gappinfo: Add precondition checks to GAppLaunchContext env methods See merge request GNOME/glib!813 06 May 2019, 11:29:30 UTC
133ad1d gappinfo: Add precondition checks to GAppLaunchContext env methods Spotted in https://gitlab.gnome.org/GNOME/mutter/issues/586. Bad input on GAppLaunchContext environment manipulation functions is caught by inner code, but the warning is not seemingly related. Add precondition checks to these functions so it's clear where does the bad input come from. 06 May 2019, 11:05:24 UTC
5bb2366 Merge branch '106-boxed-documentation' into 'master' docs: Expand introduction to boxed types Closes #106 See merge request GNOME/glib!798 02 May 2019, 14:59:35 UTC
9be2ce3 Merge branch '1768-strlcat-test-fix' into 'master' tests: Increase buffer size for g_strlcat() tests Closes #1768 See merge request GNOME/glib!811 02 May 2019, 14:55:36 UTC
d5f9b53 Merge branch 'queue-tests' into 'master' Get to 100% coverage on GQueue tests See merge request GNOME/glib!806 02 May 2019, 14:51:24 UTC
15aaaea docs: Expand introduction to boxed types Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #106 02 May 2019, 13:31:31 UTC
d16a7b2 Merge branch 'socket-docs-trivial' into 'master' gsocket: Clarify in docs that `flags` arguments can be platform specific See merge request GNOME/glib!732 02 May 2019, 12:54:18 UTC
d509335 gqueue: Remove a redundant branch queue->tail->next cannot be non-NULL, as pushing onto the end of the queue is handled by the call to g_queue_push_tail_link() above. Signed-off-by: Philip Withnall <withnall@endlessm.com> 02 May 2019, 12:53:09 UTC
4f38620 tests: Add unit tests for g_queue_push_nth_link() This should get its branch coverage up to 100%. For completeness’ sake. Signed-off-by: Philip Withnall <withnall@endlessm.com> 02 May 2019, 12:53:09 UTC
f033948 tests: Add a test for calling g_queue_clear_full() with a NULL free_func This improves the branch coverage of gqueue.c a little. Signed-off-by: Philip Withnall <withnall@endlessm.com> 02 May 2019, 12:53:09 UTC
2aa71ab tests: Rearrange assertions in the g_queue_clear_full() test This makes it a bit clearer that we expect the queue to be empty as a result of calling g_queue_clear_full(), rather than as a result of any of the later cleanup. Signed-off-by: Philip Withnall <withnall@endlessm.com> 02 May 2019, 12:50:38 UTC
aaf0a7c Merge branch '1713-ucd-12' into 'master' glib: Update Unicode Character Database to version 12.0.0 Closes #1713 See merge request GNOME/glib!804 02 May 2019, 12:49:16 UTC
81ba6e5 tests: Remove redundant non-NULL checks in g_strlcat() test The buffer is a local array, not a pointer, so can never be NULL. Signed-off-by: Philip Withnall <withnall@endlessm.com> 02 May 2019, 12:28:55 UTC
777a603 tests: Add checks for buffer sizing in g_strlcat() tests Just to ensure we’re passing a valid value for dest_size. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1768 02 May 2019, 12:28:27 UTC
7541085 tests: Increase buffer size for g_strlcat() tests There was a buffer overflow on the last g_strlcat() call in the test. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1768 02 May 2019, 12:27:53 UTC
0095056 Merge branch '1755-revert-gstrfunc' into 'master' Revert "macros: Try to use the standard __func__ first in G_STRFUNC" Closes #1755 See merge request GNOME/glib!799 02 May 2019, 12:24:15 UTC
c6342b9 tests: Don’t check for libdl on FreeBSD or NetBSD either As with commit c14ac90ed2347ef050ccc83ef6b7b183cec6d0e4, it isn’t needed and doesn’t exist. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1739 02 May 2019, 12:00:48 UTC
22d4a44 Merge branch 'emmanuel.fleury/glib-g_strcanon_documentation_fix' into 'master' Modified version of !784 — Adding tests cases for a better coverage of glib/tests/strfuncs.c See merge request GNOME/glib!809 01 May 2019, 23:30:07 UTC
4afab02 Adding tests cases for a better coverage of glib/tests/strfuncs.c 01 May 2019, 23:13:25 UTC
375fa65 Merge branch 'wip/chergert/insertbeforelink' into 'master' Add pre-allocated link helpers for GList and GQueue See merge request GNOME/glib!476 01 May 2019, 22:47:15 UTC
b3925ff glist: code style cleanup for g_list_insert_before() This makes the g_list_insert_before() follow more closely the guidelines for GLib, which is to avoid implicit pointer boolean value and to prefer for over while to improve readability. 01 May 2019, 20:01:14 UTC
a4c3feb queue: add g_queue_insert_before_link() and g_queue_insert_after_link() This adds two new helpers that allow for inserting pre-allocated GList elements to the queue similar to existing helpers. This may be advantagous in some situations such as statically allocated GList elements. 01 May 2019, 20:01:14 UTC
b0132bb list: add g_list_insert_before_link() This adds a new insertion helper using a pre-allocated link which may be advantagous in some situations such as statically linked GList elements. 01 May 2019, 20:01:14 UTC
48b037f Merge branch 'ci-update' into 'master' Update the Docker images used for CI See merge request GNOME/glib!808 01 May 2019, 10:12:02 UTC
0b609b5 ci: Add a debian-stable job So we can test ancient toolchains. 30 April 2019, 17:26:15 UTC
992e7ce ci: Move to per-job images We don't use a global Docker image any more. 30 April 2019, 17:26:15 UTC
397e44f ci: Update the Android NDK image to Fedora 28 Fedora 27 was EOL'ed on November 2018. We move to Fedora 28 because the Android NDK requires Python 2 and probably other things, and bumping to Fedora 29 is going to be more painful. 30 April 2019, 17:26:15 UTC
ee9afb3 ci: Remove Android and MingW bits from the fedora Dockerfile These live in their own Dockerfiles, now. 30 April 2019, 17:22:44 UTC
15d13d1 ci: Add a MinGW Docker image The Fedora image we use contains MinGW bits that ought to go into their own Docker container. This avoids having a massive Docker image that gloms everything and is harder to update. While we're splitting off, we can also update to Fedora 29, as we can rely on Fedora packagers doing their job and ensuring that the MinGW cross-compilation toolchain still works. 30 April 2019, 17:21:15 UTC
92fbdb5 ci: Add an Android NDK Docker image The Fedora image we use contains Android bits that ought to go into their own Docker container. This avoids having a massive Docker image that gloms everything and is harder to update. We reuse the same Docker image we used for Fedora, to avoid regressing. 30 April 2019, 17:18:38 UTC
b4d920f ci: Beef up run-docker.sh Add argument validation and split the build/run/push phases into commands. 30 April 2019, 14:37:31 UTC
d42a551 ci: Rename the Fedora Dockerfile We're going to add more, so let's avoid collisions. 30 April 2019, 14:37:31 UTC
2515015 ci: Add Debian stable Docker image Does everything the Fedora image does, only with an older toolchain and older dependencies. 30 April 2019, 14:37:31 UTC
eb55d64 Check GCC version before ignoring diagnostic message The `alloc-size-larger-than` warning is available starting with GCC 7, and using it in a pragma will generate a warning on older versions of GCC. 30 April 2019, 13:49:00 UTC
6cb6b41 Add a version check for duplicated-branches warning The GHashTable code ignores the duplicated-branches GCC warning, but we need to do a compiler and version check, as either non-GCC compatible compilers, or older versions of GCC will warn about the unknown pragma or diagnostic. If we don't do this while turning warnings into error, we're going to fail the build unnecessarily. 30 April 2019, 13:49:00 UTC
99d068f ci: Add clang and scan-build We want to run the Clang-based build analysis tool in our CI pipeline, taking advantage of its native support in Meson. 30 April 2019, 13:49:00 UTC
7875f34 ci: Update the Docker image for Fedora Use Fedora 29, soon to be old-stable. 30 April 2019, 13:49:00 UTC
94f63b8 Merge branch 'strcanon-docs' into 'master' Merge of initial commits from !784 Closes #29 See merge request GNOME/glib!807 30 April 2019, 10:52:42 UTC
31c4a3a Merge branch 'flaky-monitor' into 'master' Remove monitor test See merge request GNOME/glib!785 30 April 2019, 10:04:03 UTC
b3eab1d Fixing glib/tests/strfuncs.c to conform to new test coding standards 30 April 2019, 07:43:01 UTC
95a5f63 Fix some documentation issue in glib/gstrfuncs.c Apparently, the documentation of g_strcanon() was not really cristal clear, so this new code sample try to make it clear the fact that we are working on the given string and not a copy. Moreover, it provides a way to keep the original string at once. Fix #29 30 April 2019, 07:43:01 UTC
6d3dcd1 Merge branch 'tap-p-order' into 'master' testing: Run tests specified with -p in the order specified Closes #1763 See merge request GNOME/glib!805 29 April 2019, 17:09:20 UTC
a537e53 testing: Run tests specified with -p in the order specified Closes: #1763 Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 16:28:55 UTC
0e999f3 Merge branch 'tap-skip' into 'master' gtestutils: Make --tap compatible with -p and --GTestSkipCount See merge request GNOME/glib!556 29 April 2019, 15:45:59 UTC
48cc3ab testing: Comment that test order with -p is reversed Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 15:12:02 UTC
dfec3c6 Test what happens when GTestSkipCount is 0 or more than number of tests Using --GTestSkipCount 0 is the same as omitting it. A skip count greater than the number of tests is the same as equalling the number of tests: they are all skipped. Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 15:08:55 UTC
bcee67e gtestutils: Test the combination of --tap and -p Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 14:54:10 UTC
b24cdff gtestutils: Allow combining --tap with -p The -p option is documented, and can be used to select and repeat test-cases. This is particularly useful when debugging a single failure among a large number of test-cases, or when debugging a test-case that you suspect influences another test-case by leaking global state. Until now, -p was only supported with GLib's default (GLib-specific) textual output format, and not with the standardized TAP format that we are now encouraging. If we are considering making TAP the new default (see glib#1619) it should get feature-equivalence with the current default. Because -p allows test-cases to be re-ordered and repeated, and an entry in the test_paths list can match any number of test-cases (including zero), we don't know ahead of time how many test-cases we are going to run. TAP allows the "plan" to be deferred to the end, exactly to support situations like this. Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 14:54:10 UTC
efa56aa gtestutils: Test the combination of --tap and --GTestSkipCount Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 14:54:10 UTC
1408219 gtestutils: Make --tap compatible with --GTestSkipCount The undocumented --GTestSkipCount option is internal to the deprecated gtester tool and rather obscure, but it's straightforward to support by making G_TEST_LOG_SKIP_CASE produce TAP output similar to what already happened when we emitted G_TEST_LOG_STOP_CASE with result G_TEST_RUN_SKIPPED. I might as well do that while I'm looking at the interaction between the --tap, -p and -s options. Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 14:54:10 UTC
88bac46 gtestutils: Add regression test for combining -s with --tap Signed-off-by: Simon McVittie <smcv@collabora.com> 29 April 2019, 14:54:10 UTC
87014c8 glib: Update Unicode Character Database to version 12.0.0 Using commands: glib/gen-unicode-tables.pl -both 12.0.0 path/to/UCD tests/gen-casefold-txt.py 12.0.0 path/to/UCD/CaseFolding.txt \ > tests/casefold.txt tests/gen-casemap-txt.py 12.0.0 path/to/UCD/UnicodeData.txt \ path/to/UCD/SpecialCasing.txt > tests/casemap.txt plus some manual additions of the new G_UNICODE_SCRIPT_* symbols to gunicode.h, guniprop.c and glib/tests/unicode.c. Using UCD release https://www.unicode.org/Public/zipped/12.0.0/UCD.zip. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1713 29 April 2019, 13:16:12 UTC
e9389ef gsocket: Clarify in docs that `flags` arguments can be platform specific As suggested by Philip Chimento. Signed-off-by: Philip Withnall <withnall@endlessm.com> 29 April 2019, 12:21:08 UTC
1c77c93 Merge branch 'gconstrutor-h-stdlib-h-msvc' into 'master' glib/gconstructor.h: Include stdlib.h for MSVC builds See merge request GNOME/glib!791 29 April 2019, 12:10:52 UTC
8482318 Merge branch 'master' into 'master' gnetworkmonitornm: Fix network available detection See merge request GNOME/glib!781 29 April 2019, 12:05:54 UTC
719133e gnetworkmonitornm: Fix network available detection The network-available property can be asserted by querying the NMState describing the current overval network state, instead of the NMConnectivityState. The advantage of the NMState is that is reflects immediately the network state modification, while the connectivity state is tested at a fixed frequency. 29 April 2019, 12:05:54 UTC
798c59a Merge branch 'openbsd-no-ld' into 'master' gio: tests, don't check for libdl on OpenBSD See merge request GNOME/glib!802 29 April 2019, 11:21:41 UTC
4ceac0d Merge branch '1760-txt-record-docs' into 'master' docs: Clarify support for multiple TXT record strings Closes #1760 See merge request GNOME/glib!797 29 April 2019, 10:50:05 UTC
753eeb1 gproxy: Add a missing ‘the’ to a documentation comment Spotted by Michael Catanzaro. Signed-off-by: Philip Withnall <withnall@endlessm.com> 29 April 2019, 10:33:02 UTC
1273fa3 Update Basque translation 28 April 2019, 09:21:55 UTC
c14ac90 gio: tests, don't check for libdl on OpenBSD libdl does not exist on OpenBSD and is not required as the functionnality is provided in libc. 27 April 2019, 16:45:45 UTC
5bb19b0 docs: Clarify support for multiple TXT record strings Most TXT records only contain a single string, but some may contain more. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1760 26 April 2019, 15:49:38 UTC
1916700 Revert "macros: Try to use the standard __func__ first in G_STRFUNC" This reverts commit 9f75cc9edf1d311ef4bacc3d686c7afa0c4dcbb2. It breaks usage of G_STRFUNC when compiling applications with `-Wpedantic` — `__func__` is not `#define`d, so G_STRFUNC was falling through to using `__FUNCTION__`, which raises a warning with `-Wpedantic`. Fun times. Fixes: #1755 26 April 2019, 12:08:21 UTC
back to top