Philip Withnall
a8b9c237cf
Merge branch 'gdbus-register-error-domain-out-annotation' into 'main'
...
GDBus: Add `(out)` annotation to quark in g_dbus_error_register_error_domain()
See merge request GNOME/glib!4798
2025-09-16 14:20:58 +00:00
Philip Withnall
aa04e30883
Merge branch 'gstring_replace_guint' into 'main'
...
gstring: Support large strings in g_string_replace
See merge request GNOME/glib!4790
2025-09-16 14:20:01 +00:00
Philip Withnall
0ea8880468
Merge branch 'ci-msys2-use-meson-coverage-option' into 'main'
...
CI/MSYS2: Use builtin b_coverage option
See merge request GNOME/glib!4794
2025-09-16 14:19:44 +00:00
Philip Withnall
3691e4d3d7
Merge branch 'win32-app-info-co-allow-set-foreground-window' into 'main'
...
GWin32AppInfo: Allow focus-stealing when requested via GAppLaunchContext
See merge request GNOME/glib!4759
2025-09-16 14:19:21 +00:00
Philip Withnall
3d0c3bfae8
Merge branch '3771-keyfile-invalid-escapes' into 'main'
...
gdesktopappinfo: Error out on more invalid desktop files
Closes #3771
See merge request GNOME/glib!4766
2025-09-16 14:18:58 +00:00
Philip Withnall
5b9f3fb947
Merge branch 'version-bump' into 'main'
...
build: Post-release version bump
See merge request GNOME/glib!4806
2025-09-16 11:44:44 +00:00
Philip Withnall
050bb48775
build: Post-release version bump
...
This opens up the development cycle for 2.88.
Signed-off-by: Philip Withnall <pwithnall@gnome.org >
2025-09-16 11:56:29 +01:00
Philip Withnall
958a0bccbe
Merge branch 'help-width' into 'main'
...
get_help(): Ignore width of invisible options
Closes #3781
See merge request GNOME/glib!4801
2025-09-16 10:51:14 +00:00
FeRD (Frank Dana)
bff4dcb3d8
get_help(): Ignore width of invisible options
...
When get_help() gets ready to lay out the help text into columns,
it first goes through and computes the max_width of the strings in
the left column. Problem is, it measures the width of every
available option, whether or not they'll actually be displayed.
Instead, let's use the same criteria used when deciding whether
to display an option, to decide whether or not to account for it
when computing max_width. This way, the layout is sized for the
help that's actually being produced.
Fixes #3781
2025-09-16 11:20:17 +01:00
Philip Withnall
c091c3e3f1
Merge branch 'fuzzing_special_dirs' into 'main'
...
fuzzing: Fix fuzz_special_dirs
Closes #3783
See merge request GNOME/glib!4804
2025-09-16 08:44:04 +00:00
Tobias Stoeckmann
0bebad35cf
fuzzing: Fix fuzz_special_dirs
...
Always NUL-terminate the data, which g_file_get_contents does as well.
This fixes unnecessary fuzzer warnings.
For further clarification of this requirement, rename the internally
used function.
Fixes : #3783
2025-09-16 10:28:14 +02:00
Philip Withnall
c31c4a5259
Merge branch 'special_dirs' into 'main'
...
gutils: Improve load_user_special_dirs' user-dirs.dirs parser
See merge request GNOME/glib!4800
2025-09-15 22:57:44 +00:00
Tobias Stoeckmann
ed594d819e
fuzzing: add special dirs fuzzing test
...
Split custom user-dirs.dirs parser into its own gutilsprivate.c file
for easier fuzzing support and add a fuzzing test.
2025-09-16 00:08:17 +02:00
Tobias Stoeckmann
300722b6c4
gutils: Handle huge lines in load_user_special_dirs
...
If a line is longer than G_INTMAX, still treat it correctly without
possibly provoking an out of boundary read.
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
9a2d221e90
gutils: Reject unquoted entries in load_user_special_dirs
...
If the end quote is missing, reject the entry. Please note that this
still allows entries with an uneven amount of quotes, e.g. "/"".
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
43d9e50654
gutils: Strip all trailing slahes in load_user_special_dirs
...
Do what the comment states and strip all trailing slashes. Also, do not
strip the trailing slash if it's the only character left, i.e. if it
denotes the root directory.
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
2e88bd5fdd
gutils: Only allow $HOME in load_user_special_dirs
...
Make sure that the allowed environment variable is actually HOME, not
any environment variable starting with HOME, e.g. HOMER.
2025-09-15 17:21:13 +02:00
Philip Withnall
63ff527253
Merge branch 'update-tr' into 'main'
...
Update Turkish translation
See merge request GNOME/glib!4802
2025-09-15 09:24:50 +00:00
Sabri Ünal
25b5bf8ea7
Update Turkish translation
...
Approved by Emin Tufan Çetin
https://l10n.gnome.org/vertimus/glib/main/po/tr/
2025-09-14 14:31:25 +03:00
Tobias Stoeckmann
82c83a8871
gutils: Support test env in load_user_special_dirs
...
XDG_CONFIG_DIR and HOME can be overridden with test environments. Read
these variables before building them again.
It's not possible to call the getter functions directly because the
caller of load_user_special_dirs already holds a lock and locking again
is undefined behavior and could lead to deadlocks.
Separate the functionality out into unlocked functions which definitely
have to be static to not expose them. Use them while holding the lock.
2025-09-12 17:06:13 +02:00
Philip Withnall
a0f23830b0
Merge branch 'patch-1' into 'main'
...
`gio/tests/socket-listener` should depend on `libdl`
Closes #3780
See merge request GNOME/glib!4799
2025-09-11 16:53:33 +00:00
Uwe Korn
2b0f5304bd
gio/tests/socket-listener
should depend on libdl
2025-09-11 16:04:15 +00:00
Sebastian Dröge
58791ea699
GDBus: Add (out)
annotation to quark in g_dbus_error_register_error_domain()
2025-09-11 14:01:27 +03:00
Tobias Stoeckmann
c79db8f282
gstring: Support large strings in g_string_replace
...
Allow more than G_MAXUINT replacements in g_string_replace. Even
though the return value type is guint, do as many replacements
as requested if limit is 0 and return G_MAXUINT if even more
operations were performed to satisfy current ABI/API.
With input by Philip Withnall.
2025-09-10 17:39:48 +02:00
Philip Withnall
d331794de4
Merge branch 'g_strescape_oflow' into 'main'
...
gstrfuncs: Check string length in g_strescape
See merge request GNOME/glib!4791
2025-09-10 11:28:49 +00:00
Luca Bacci
f8d00c6458
ci/msys2: Use builtin b_coverage option
...
...instead of custom CFLAGS
2025-09-10 10:14:54 +02:00
Tobias Stoeckmann
b274f82963
gstrfuncs: Check string length in g_strescape
...
If the input string is too large on a 32 bit system, it is possible
to trigger an integer overflow which subsequently leads to an out of
boundary write.
2025-09-09 21:04:17 +02:00
Philip Withnall
77fe11e8b2
Merge branch 'urbalazs-main-patch-77698' into 'main'
...
Update Hungarian translation
See merge request GNOME/glib!4787
2025-09-09 09:28:52 +00:00
Balázs Úr
7a5a7a7133
Update Hungarian translation
2025-09-09 08:11:58 +00:00
Philip Withnall
eba68f0378
Merge branch 'main' into 'main'
...
Update Galician translations
See merge request GNOME/glib!4786
2025-09-08 12:23:45 +00:00
Fran Dieguez
31c519a851
Update Galician translations
2025-09-08 09:21:05 +02:00
Philip Withnall
3de88a5e31
Merge branch 'update-pt_BR' into 'main'
...
Update Brazilian Portuguese translation
See merge request GNOME/glib!4780
2025-09-07 16:02:35 +00:00
Philip Withnall
67dae8f4ad
Merge branch 'gmem_oflow_check' into 'main'
...
gmem: Replace SIZE_OVERFLOWS with g_size_checked_mul
See merge request GNOME/glib!4779
2025-09-07 15:11:02 +00:00
Philip Withnall
57b6738c6d
Merge branch 'lb90-maintainer' into 'main'
...
docs: Add Luca Bacci as a co-maintainer of the Windows code
See merge request GNOME/glib!4773
2025-09-07 15:03:17 +00:00
Philip Withnall
3b8c4a1f01
Merge branch 'patch-1' into 'main'
...
Update Japanese translation
See merge request GNOME/glib!4785
2025-09-07 14:59:33 +00:00
Philip Withnall
e518a9df7d
Merge branch 'translation-ko-20250906' into 'main'
...
Update Korean translation
See merge request GNOME/glib!4782
2025-09-07 14:58:11 +00:00
Philip Withnall
52a7cab4f3
Merge branch 'main' into 'main'
...
Update eu translation
See merge request GNOME/glib!4781
2025-09-07 14:57:41 +00:00
Philip Withnall
515bc96e87
Merge branch 'clang_test_warnings' into 'main'
...
tests: Fix clang compilation warnings
See merge request GNOME/glib!4778
2025-09-07 14:56:27 +00:00
Philip Withnall
49bd40d958
Merge branch 'update-lt-translation' into 'main'
...
Update Lithuanian translation
See merge request GNOME/glib!4777
2025-09-07 14:55:33 +00:00
Philip Withnall
c2442d07e7
Merge branch 'update_uk2' into 'main'
...
Update Ukrainian translation
See merge request GNOME/glib!4775
2025-09-07 14:55:01 +00:00
Philip Withnall
c8e373ba52
Merge branch 'catalan' into 'main'
...
Update Catalan translation
See merge request GNOME/glib!4776
2025-09-07 14:54:44 +00:00
Makoto Sakaguchi
5b450a2390
Update Japanese translation
...
From https://l10n.gnome.org/vertimus/glib/main/po/ja/
2025-09-07 08:50:52 +09:00
Changwoo Ryu
89a20f8c5b
Update Korean translation
2025-09-06 20:11:23 +09:00
Asier Saratsua Garmendia
1177c8eae3
Update eu translation
2025-09-06 07:33:09 +00:00
Rafael Fontenelle
9e1241a0d0
Update Brazilian Portuguese translation
2025-09-05 20:24:43 -03:00
Tobias Stoeckmann
ceb5ac4925
gmem: Replace SIZE_OVERFLOWS with g_size_checked_mul
...
Using the builtin multiplication checks leads to less instructions used
for these common functions (true for clang as well as gcc on x86_64).
Also, from a C perspective, the result is re-used, making code audits
easier.
2025-09-05 23:00:07 +02:00
Tobias Stoeckmann
c546ac20d8
tests: Fix clang compilation warnings
...
With these adjustments, building with clang leads to no warnings:
- The "{ NULL }" statement could be replaced with "{ 0 }" to satisfy
clang, but this way it's explicitly filling all fields
- Even though "i" is not read with these g_array_binary_search calls,
it rightfully should be set
2025-09-05 22:34:44 +02:00
Aurimas Černius
fcaefd2fa6
Update Lithuanian translation
2025-09-05 20:01:54 +00:00
Jordi Mas
a04e18fc6d
Update Catalan translation
2025-09-05 20:21:22 +02:00
Yuri Chornoivan
4310757baa
Update Ukrainian translation
2025-09-05 20:57:17 +03:00