https://github.com/GNOME/glib

sort by:
Revision Author Date Message Commit Date
3b725f1 Fix test on the date format for FreeBSD and MacOS X. ... and dump the output of FreeBSD to know what is wrong Related to MR !2433 03 February 2022, 23:42:55 UTC
62ee602 Merge branch 'move_testgdate' into 'main' Remove tests/testgdate.c from tests See merge request GNOME/glib!2433 03 February 2022, 15:29:16 UTC
e5cb2e9 Remove tests/testgdate.c from tests Related to issue #1434 03 February 2022, 14:18:05 UTC
c703116 Merge branch 'zbrown/gfile-not-nullable' into 'main' gfile: resolve_relative_path isn't nullable See merge request GNOME/glib!2468 02 February 2022, 11:21:54 UTC
aede29c gfile: resolve_relative_path isn't nullable 02 February 2022, 11:03:25 UTC
e15de9a Merge branch 'wip/chergert/add-gbindinggroup' into 'main' Add GBindingGroup and GSignalGroup See merge request GNOME/glib!2235 02 February 2022, 08:52:54 UTC
dd43471 gobject: add GSignalGroup Much like GBindingGroup, the GSignalGroup object allows you to connect many signal connections for an object and connect/disconnect/block/unblock them as a group. This is useful when using many connections on an object to ensure that they are properly removed when changing state or disposing a third-party object. This has been used for years in various GNOME projects and makes sense to have upstream instead of multiple copies. 02 February 2022, 01:09:14 UTC
1cdb0f8 Update Slovenian translation 01 February 2022, 19:32:46 UTC
555bef0 Merge branch 'file-test' into 'main' File tests See merge request GNOME/glib!2404 01 February 2022, 11:15:45 UTC
b617b40 Update Galician translation 31 January 2022, 23:36:10 UTC
fd1890f Update Chinese (China) translation 31 January 2022, 03:22:54 UTC
78720ef Update Japanese translation 30 January 2022, 15:25:28 UTC
8d13fc5 Update Japanese translation 30 January 2022, 15:13:15 UTC
2415b3c Update Polish translation (cherry picked from commit 49c377c61f958d9d9dc555fc0338fdc89dd81729) 29 January 2022, 14:08:59 UTC
0d9de09 gobject: add GBindingGroup Originally, GBindingGroup started with Builder as a way to simplify all of the third-degree object bindings necessary around Model-Controller objects such as TextBuffer/TextView. Over time, it has grown to be useful in a number of scenarios outside of Builder and has been copied into a number of projects such as GNOME Text Editor, GtkSourceView, libdazzle, and more. It makes sense at this point to unify on a single implementation and include that upstream in GObject directly alongside GBinding. 29 January 2022, 00:01:22 UTC
ea0fa26 Merge branch 'fix-gi-suproject' into 'main' gi: expose some files as variable for gobject-introspection See merge request GNOME/glib!2465 28 January 2022, 16:44:20 UTC
b1ed990 gi: expose some files as variable for gobject-introspection see: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/313 28 January 2022, 15:16:29 UTC
88f4514 Merge branch 'SuibianP-main-patch-88562' into 'main' Amend g_bus_get* documentation regarding private connection See merge request GNOME/glib!2464 28 January 2022, 13:11:36 UTC
7f044ba Amend g_bus_get* documentation regarding private connection 28 January 2022, 13:11:34 UTC
7a759e1 Update Russian translation 28 January 2022, 11:06:16 UTC
c2ac44b Update Brazilian Portuguese translation 27 January 2022, 15:33:59 UTC
4bd23d1 2.71.1 Signed-off-by: Philip Withnall <pwithnall@endlessos.org> 27 January 2022, 15:22:23 UTC
80b6aad Update Ukrainian translation 27 January 2022, 14:52:54 UTC
e01e6ef Merge branch 'windows-static-build-postfixes' into 'main' Fix tests with static build on Windows See merge request GNOME/glib!2442 27 January 2022, 14:33:40 UTC
a542c10 Merge branch 'revert-7f2de9ab' into 'main' Revert "Merge branch 'fix-windows-pc' into 'main'" See merge request GNOME/glib!2463 27 January 2022, 14:10:24 UTC
cdda7bb Revert "Merge branch 'fix-windows-pc' into 'main'" This reverts merge request !2459 27 January 2022, 13:04:12 UTC
73aebf3 Update Portuguese translation 27 January 2022, 12:53:46 UTC
cbbc920 Fix exported symbols in proxy-libintl subproject 27 January 2022, 11:10:13 UTC
4f6673f Fix glib/tests/completion test GLists compare pointers values and not strings content. 27 January 2022, 11:10:13 UTC
38abada Fix dbus process autolaunch with static build on Windows On Windows, dbus is launched by spawning the gdbus.exe executable on demand from the gio module. When linked dynamically, the executable path is guessed relatively to the gio DLL path. But when linked statically, the only reference path available is the current executable path. In this case, gdbus.exe is not necessarily in the same folder as the current executable. This patch solves the issue using the same algorithm as the one used with process spawning in glib core source code two commits above. 27 January 2022, 11:10:13 UTC
41f8bbd Fix process spawning with static build on Windows On Windows, process spawning needs an external helper exe which is found relatively to the glib DLL file. If glib has been built statically this file doesn't exist anymore and reference path is not the DLL path anymore but the current executable path. This patch searches for the helper exe taking as starting point the current executable path, relative 'bin', 'lib', 'glib' and 'gio' folders and then gets one level up until the root path. If this search doesn't give result then the helper exe is searched using the PATH variable. 27 January 2022, 11:10:13 UTC
94f4ec8 Merge branch 'fix-memleak-gdbusauthmechanismsha1' into 'main' Fix memory leak in gio/gdbusauthmechanismsha1.c See merge request GNOME/glib!2461 27 January 2022, 11:05:45 UTC
f242299 Merge branch 'windows-static-resource' into 'main' Windows: Do not link DLL specific resources when doing a static build Closes #2585 See merge request GNOME/glib!2457 27 January 2022, 11:02:34 UTC
7f51962 Merge branch '1190-debug-interface' into 'main' gdebugcontroller: Add debug controller API and D-Bus implementation Closes #1190 See merge request GNOME/glib!2330 27 January 2022, 11:00:40 UTC
13ee465 Merge branch 'fix-g_find_program_in_path' into 'main' gutils: Fix g_find_program_in_path() to return an absolute path Closes #2586 See merge request GNOME/glib!2460 27 January 2022, 10:50:36 UTC
6ec4323 Fix memory leak in gio/gdbusauthmechanismsha1.c 27 January 2022, 09:39:49 UTC
7f2de9a Merge branch 'fix-windows-pc' into 'main' gio: add missing zlib dependency in gio-windows-2.0.pc See merge request GNOME/glib!2459 27 January 2022, 08:45:53 UTC
78dc1cc gutils: Fix g_find_program_in_path() to return an absolute path Fix a possibility of returning a relative path, in case PATH contains a relative path. According to the doc, the function should return an absolute path. Signed-off-by: Christoph Niethammer <christoph.niethammer@gmail.com> 27 January 2022, 02:54:01 UTC
4d97fef Update Brazilian Portuguese translation 26 January 2022, 19:29:01 UTC
2e4eccb Update Brazilian Portuguese translation (cherry picked from commit 22e9237d0284101be1fb74fa831f78461578e506) 26 January 2022, 19:22:41 UTC
d363907 Update Galician translation 26 January 2022, 18:47:41 UTC
2eb1eb1 Merge branch 'glib-compile-resources-build-improvements' into 'main' tests: Pass --internal and -z noexecstack to glib-compile-resources tests See merge request GNOME/glib!2456 26 January 2022, 18:13:05 UTC
d2ab2bc gio: add missing zlib dependency in gio-windows-2.0.pc 26 January 2022, 17:13:05 UTC
34458a7 Update Portuguese translation 26 January 2022, 15:47:11 UTC
0c8f7de gdebugcontroller: Add debug controller API and D-Bus implementation This is intended to provide a uniform interface for controlling whether the debug output from an application (or service) is emitted, typically to journald, but actually to wherever the application chooses to output it. The main implementation of `GDebugController` is `GDebugControllerDBus`, which is intended to be used on Linux. Other implementations may be added in future for other platforms, or larger applications may want to provide their own implementation which integrates with their ecosystem. The `GDebugControllerDBus` implementation exposes a D-Bus interface at `/org/gtk/Debugging` with a method to enable or disable debug output at runtime. This could be used by external harnesses, such as GNOME Builder or systemd, to give a uniform way to get debug output from an application. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #1190 26 January 2022, 15:19:27 UTC
bb4bec0 gmessages: Expose a property for enabling debug message output This is an API analogue of the G_MESSAGES_DEBUG environment variable. It is intended to be exposed outside applications (for example, as a D-Bus interface — see follow-up commits) so that there is a uniform interface for controlling the debug output of an application. Helps: #1190 26 January 2022, 15:17:02 UTC
70c116e Merge branch 'win32-afunix' into 'main' gio: Add some AF_UNIX support on Windows Closes #2487 See merge request GNOME/glib!2445 26 January 2022, 15:11:48 UTC
9159e84 Windows: Do not link DLL specific resources when doing a static build Fixes: #2585 26 January 2022, 14:49:30 UTC
9cde484 tests: Mark compiled resource file as not having an executable stack As with the previous commit, this isn’t needed for GLib’s tests to work correctly, but is probably needed in other projects which might be tempted to copy and paste the Meson tooling from GLib. Inspired by https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4330 Signed-off-by: Philip Withnall <pwithnall@endlessos.org> 26 January 2022, 14:28:46 UTC
51e6e4f Update Portuguese translation 26 January 2022, 14:28:38 UTC
55fa866 tests: Pass --internal to glib-compile-resources tests This isn’t needed to make the tests any better (it doesn’t really affect them), but is probably needed for anyone who copies this Meson code in order to add `glib-compile-resources` support to their project. It’s pretty unlikely that someone would want to compile *and export* a resource from a shared library. Inspired by https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4334 Signed-off-by: Philip Withnall <pwithnall@endlessos.org> 26 January 2022, 14:27:38 UTC
9a9e2b5 gio: enable unix: address on win32 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
e796124 gio: tests AF_UNIX socket credentials on win32 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
95c3e28 gio: add G_CREDENTIALS_TYPE_WIN32_PID Credentials are often used to check peer processes details. With AF_UNIX sockets on Windows, SIO_AF_UNIX_GETPEERPID can be used to retrive the peer PID. We will probably introduce more advanced mechanisms later on, though, but I am not a Windows API expert. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
568f00d gio/tests: enable most AF_UNIX tests on all platforms The main difference is that g_socket_new_from_fd() requires bound sockets on Win32. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
2f8a919 gio: return G_IO_NVAL if the socket is already closed For consistency with Unix behaviour, as checked in the tests/socket.c. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
83d45c4 gio: compile GUnixConnection on all platforms On !UNIX, return an error for send_fd() & receive_fd(). (the unixfdmessage unit is not compiled on !UNIX) The header is installed under the common GIO include directory. Ensure G_TYPE_UNIX_CONNECTION is registered on all platforms. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
af1777d meson: compile GUnixCredentialsMessage on all platforms The header is now also installed under the common GIO include directory. Sorry if it breaks any build, you had to use the correct header path. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
37cab22 gio: compile GSocketAddress with AF_UNIX on all platforms Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
3308cfb gio: compile GUnixSocketAddress on all platforms Move the header under the common GIO include directory. Sorry if it breaks any build, you had to use the correct header path. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:44 UTC
4339192 gio: add fallback afunix.h header afunix.h is only recently distributed with Windows SDK & MinGW. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:23 UTC
fd1e2c8 meson: check for win32 afunix.h Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 26 January 2022, 14:19:23 UTC
b3d0752 Improve test coverage of glib/gfileutils.c 26 January 2022, 14:18:40 UTC
849d381 Move tests/file-test.c to glib/tests/fileutils.c 26 January 2022, 14:18:40 UTC
34bd3fc Merge branch 'security-fixes-main' into 'main' gdbusmessage, gvariant and garray fixes Closes #2557, #2572, and #2578 See merge request GNOME/glib!2454 26 January 2022, 13:39:37 UTC
374a189 garray: Fix integer overflows in element capacity calculations Integer overflows in size calculations of buffers (GArray and GPtrArray) allow subsequent buffer overflows. This happens due to conversions between gsize and guint. Proof of concept demonstrations of the overflows can be found in issue 2578. They are not being added as unit tests as they require too much memory to test. This will affect `GArray`s which are 4GB in size, or `GPtrArray`s which are 48GB in size. Fixes: #2578 26 January 2022, 13:06:26 UTC
c741773 gdbusmessage: Disallow zero-length elements in arrays They are not allowed in the specification, and can lead to infinite loops when parsing. That’s a security issue if your application is accepting D-Bus messages from untrusted peers (perhaps in a peer-to-peer connection). It’s not exploitable when your application is connected to a bus (such as the system or session buses), as the bus daemons (dbus-daemon or dbus-broker) filter out such broken messages and don’t forward them. Arrays of zero-length elements are disallowed in the D-Bus specification: https://dbus.freedesktop.org/doc/dbus-specification.html#container-types oss-fuzz#41428, #41435 Fixes: #2557 26 January 2022, 13:04:49 UTC
6499ad5 gdbusmessage: Disallow empty structures/tuples in D-Bus messages They are disallowed in the specification: https://dbus.freedesktop.org/doc/dbus-specification.html#container-types Helps: #2557 26 January 2022, 13:04:49 UTC
77233f6 gvariant-serialiser: Prevent unbounded recursion in is_normal() This fixes a bug in 7c4e6e9fbe473de0401c778c6b0c4aad27d5145a. The original approach in that commit accidentally only checked the depth at the leaf nodes in the variant tree, whereas actually the depth should be checked before recursing to avoid stack overflow. It neglected to consider that `g_variant_serialised_is_normal()` would be recursed into by some of the `DISPATCH(_is_normal)` cases. When that happened, the depth check was after the recursion so couldn’t prevent a stack overflow. Fixes: #2572 26 January 2022, 13:04:49 UTC
5ca038c Merge branch 'windows-static-build-core' into 'main' Enable full-static build on Windows Closes #692 See merge request GNOME/glib!2438 26 January 2022, 11:38:44 UTC
097cd3a Add Windows native static build using msvc to CI 26 January 2022, 11:07:46 UTC
42c77c7 Enable full-static build on Windows Glib cannot be built statically on Windows because glib, gobject and gio modules need to perform specific initialization when DLL are loaded and cleanup when unloaded. Those initializations and cleanups are performed using the DllMain function which is not called with static builds. Issue is known for a while and solutions were already proposed but never merged (see: https://gitlab.gnome.org/GNOME/glib/-/issues/692). Last patch is from version 2.36.x and since then the "constructor/destructor" mechanism has been implemented and used in other part of the system. This patch takes back the old idea and updates it to the last version of glib to allow static compilation on Windows. WARNING: because DllMain doesn't exist anymore in static compilation mode, there is no easy way of knowing when a Windows thread finishes. This patch implements a workaround for glib threads created by calling g_thread_new(), so all glib threads created through glib API will behave exactly the same way in static and dynamic compilation modes. Unfortunately, Windows threads created by using CreateThread() or _beginthread/ex() will not work with glib TLS functions. If users need absolutely to use a thread NOT created with glib API under Windows and in static compilation mode, they should not use glib functions within their thread or they may encounter memory leaks when the thread finishes. This should not be an issue as users should use exclusively the glib API to manipulate threads in order to be cross-platform compatible and this would be very unlikely and cumbersome that they may mix up Windows native threads API with glib one. Closes #692 26 January 2022, 09:14:02 UTC
2ff2c9e Refactor glib/glib-init.c to isolate init/deinit steps in isolated functions 26 January 2022, 09:08:20 UTC
4fdbfcc Uniformize G_PLATFORM_WIN32 and G_OS_WIN32 in glib-init.c According to build system (meson.build file), G_PLATFORM_WIN32 and G_OS_WIN32 are synonym. This commit just unify the usage of this define to prepare for the static build conditional compilation code. 26 January 2022, 09:08:20 UTC
98880b9 Add license disclaimer and header guards to gconstructor.h 26 January 2022, 09:08:20 UTC
bfa46bd Fix gconstructor.h header to include gslist functions Macros defined in gconstructor.h header are using g_slist_find() function but the gslist.h corresponding header was not included. 26 January 2022, 09:08:20 UTC
71d2b66 Update Indonesian translation 26 January 2022, 01:51:36 UTC
01628f9 Merge branch 'random-fixes' into 'main' Reduce the amount of compile-time warnings See merge request GNOME/glib!2441 25 January 2022, 19:45:03 UTC
6406217 gsequence: Fix variable maybe uninitialized warning ../glib/gsequence.c: In function 'g_sequence_move_range': ../glib/gsequence.c:640:24: warning: 'dest_seq' may be used uninitialized in this function [-Wmaybe-uninitialized] 640 | if (dest && dest_seq == src_seq && | ~~~~~~~~~^~~~~~~~~~ 25 January 2022, 19:18:41 UTC
c2ff12c glib/tests: Fix variable maybe uninitialized warning 25 January 2022, 19:18:41 UTC
d4cbe9c xdgmime: Fix unused-variable warning ../gio/xdgmime/xdgmimemagic.c:489:24: warning: unused variable 'i' [-Wunused-variable] 489 | unsigned int i; | ^ 25 January 2022, 19:18:41 UTC
e000690 Merge branch 'win32-mem-monitor' into 'main' gio/win32: add GMemoryMonitorWin32 See merge request GNOME/glib!2452 25 January 2022, 18:11:53 UTC
bb1b9d9 gio/win32: add GMemoryMonitorWin32 Windows has CreateMemoryResourceNotification() API: https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-creatememoryresourcenotification It only notifies whether "Available physical memory is running low." Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 25 January 2022, 16:55:57 UTC
0ed621e gio/tests: use g_message to print --watch result g_debug() isn't printed by default. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 25 January 2022, 12:31:10 UTC
06160fa gio/tests: simplify enum to string in memory-monitor Also results in more robust handling, since it can get a NULL eclass. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 25 January 2022, 12:31:10 UTC
0ea10bf Merge branch 'array-length-annotation-tls-certificate-new-from-pkcs12' into 'main' Add `(array length)` annotation to `g_tls_certificate_new_from_pkcs12()` See merge request GNOME/glib!2453 25 January 2022, 11:15:31 UTC
1979bfe Add `(array length)` annotation to `g_tls_certificate_new_from_pkcs12()` 25 January 2022, 10:39:18 UTC
3b58e85 Update Galician translation 25 January 2022, 01:47:35 UTC
b26c463 Update Russian translation 24 January 2022, 13:03:21 UTC
d41282f Update Ukrainian translation 22 January 2022, 16:27:56 UTC
78a2e4d Update Portuguese translation 22 January 2022, 15:55:03 UTC
ce8505b Update Polish translation (cherry picked from commit 7e1048d450aa1ce9f606c898ac75201bd82a11c7) 22 January 2022, 10:46:43 UTC
89c1ab2 Merge branch 'ebassi/gdbus-codegen-rst' into 'main' Add reStructuredText documentation generator for gdbus-codegen See merge request GNOME/glib!2448 22 January 2022, 02:08:39 UTC
ba2725f tests: Check "gdbus-codegen --generate-docbook" Verify that the command line argument works, by checking it's not writing to stdout/stderr, and that the generated file isn't empty. 22 January 2022, 01:30:16 UTC
4db9d43 tests: Check "gdbus-codegen --generate-rst" Verify that the command line argument works, by checking it's not writing to stdout/stderr, and that the generate file isn't empty. 22 January 2022, 01:30:16 UTC
1437be8 docs: Add --generate-rst to the gdbus-codegen docs 22 January 2022, 01:30:16 UTC
e2fe3aa Build the reStructuredText docs for the object-manager example Just like we build them for the DocBook. We are not including them in the API reference, for now. 22 January 2022, 01:30:16 UTC
66e4ba8 Add reStructuredText generator to gdbus-codegen The gdbus-codegen tool generates documentation from the XML introspection description of a D-Bus interface. Currently, only DocBook is supported at the moment, but not every modern documentation generator can handle that format. The reStructuredText format is a bit more well-supported, especially in documentation generators for non-C languages. Unlike DocBook, we get to make our own structure and conventions for how we structure the documentation when using reStructuredText. 22 January 2022, 01:30:16 UTC
5013d08 codegen: Do not add extra paragraph elements while parsing When parsing a comment we're adding <para> elements ourselves, but the DocBook generator already wraps any block of text that does not start with a <para> element with one. 22 January 2022, 01:30:16 UTC
c6a9113 Update Catalan translation 21 January 2022, 21:36:41 UTC
back to top