Commit Graph

30754 Commits

Author SHA1 Message Date
Michael Catanzaro
de7779fbd3 Merge branch 'backport-4373-macos-ico-fix-glib-2-82' into 'glib-2-82'
Backport !4373 “macos: Remove extraous space from type identifier” to glib-2-82

See merge request GNOME/glib!4381
2024-11-04 17:58:10 +00:00
Arjan Molenaar
828ca6978a macos: Remove extraous space from type identifier 2024-11-04 17:06:31 +00:00
Michael Catanzaro
0fb140c035 Merge branch 'backport-4378-gio-tool-leaks-glib-2-82' into 'glib-2-82'
Backport !4378 “gio: Fix GFileEnumerator leaks in gio tools” to glib-2-82

See merge request GNOME/glib!4380
2024-11-04 16:09:17 +00:00
correctmost
2dd1395e05 gio: Fix GFileEnumerator leaks in gio tools 2024-11-04 15:41:56 +00:00
Michael Catanzaro
d23ca8c7db Merge branch 'backport-4350-glib-domain-fix-glib-2-82' into 'glib-2-82'
Backport !4350 “glib: Don't require GLIB_DOMAIN to be a NUL-terminated string” to glib-2-82

See merge request GNOME/glib!4370
2024-10-25 02:20:38 +00:00
Sebastian Dröge
ea790e0504 glib: Add test for handling of non-NUL terminated strings in default log handler 2024-10-24 21:43:45 +01:00
Sebastian Dröge
44fb7c5b54 glib: Make sure GLIB_OLD_LOG_API is a NUL-terminated string
Every usage in GLib ensures this but theoretically external code might
pass something else. As this is only meant to be used internally from
GLib, don't support the other case but at least avoid potential out of
bound reads.
2024-10-24 21:43:45 +01:00
Sebastian Dröge
5bc28aff95 glib: Don't require GLIB_DOMAIN to be a NUL-terminated string
The length might be passed explicitly in the field instead, and the
string might not have a NUL-terminator as happens for example when
passed from the Rust bindings.

This might lead to out of bounds reads.

Thanks to Sebastian Wiesner for noticing this.
2024-10-24 21:43:45 +01:00
Simon McVittie
7e4fcb4fa8 Merge branch 'backport-4356-tzdata-glib-2-82' into 'glib-2-82'
Backport !4356 “gdatetime test: Do not assume PST8PDT was always exactly -8/-7” to glib-2-82

See merge request GNOME/glib!4357
2024-10-18 11:53:31 +00:00
Simon McVittie
0b12ce089e gdatetime test: Fall back if legacy System V PST8PDT is not available
On recent versions of Debian, PST8PDT is part of the tzdata-legacy
package, which is not always installed and might disappear in future.
Successfully tested with and without tzdata-legacy on Debian unstable.

Signed-off-by: Simon McVittie <smcv@debian.org>
2024-10-18 12:09:32 +01:00
Simon McVittie
44287620ba gdatetime test: Try to make PST8PDT test more obviously correct
Instead of using timestamp 0 as a magic number (in this case interpreted
as 1970-01-01T00:00:00-08:00), calculate a timestamp from a recent
year/month/day in winter, in this case 2024-01-01T00:00:00-08:00.

Similarly, instead of using a timestamp 15 million seconds later
(1970-06-23T15:40:00-07:00), calculate a timestamp from a recent
year/month/day in summer, in this case 2024-07-01T00:00:00-07:00.

Signed-off-by: Simon McVittie <smcv@debian.org>
2024-10-18 12:09:32 +01:00
Rebecca N. Palmer
57fa3b16a7 gdatetime test: Do not assume PST8PDT was always exactly -8/-7
In newer tzdata, it is an alias for America/Los_Angeles, which has a
slightly different meaning: DST did not exist there before 1883. As a
result, we can no longer hard-code the knowledge that interval 0 is
standard time and interval 1 is summer time, and instead we need to look
up the correct intervals from known timestamps.

Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3502
Bug-Debian: https://bugs.debian.org/1084190
[smcv: expand commit message, fix whitespace]
Signed-off-by: Simon McVittie <smcv@debian.org>
2024-10-18 12:09:31 +01:00
Philip Withnall
45b469ea32
2.82.2
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-10-17 12:08:41 +01:00
Michael Catanzaro
e1f33e5559 Merge branch 'backport-4348-data-input-stream-read-line-utf8-fix-glib-2-82' into 'glib-2-82'
Backport !4348 “gdatainputstream: Fix length return value on UTF-8 validation failure“ to glib-2-82

See merge request GNOME/glib!4349
2024-10-12 18:34:44 +00:00
Philip Withnall
048a0f73e9
gdatainputstream: Fix length return value on UTF-8 validation failure
The method was correctly returning an error from
`g_data_input_stream_read_line_utf8()` if the line contained invalid
UTF-8, but it wasn’t correctly setting the returned line length to 0.
This could have caused problems if callers were basing subsequent logic
on the length and not the return value nullness or `GError`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

oss-fuzz#372819437
2024-10-12 13:33:15 +01:00
Philip Withnall
38000eb9a0
tests: Use g_assert_*() rather than g_assert() in GDataInputStream tests
It won’t get compiled out with `G_DISABLE_ASSERT`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-10-12 13:33:07 +01:00
Michael Catanzaro
552be8a551 Merge branch 'backport-4333-macos-multicast-glib-2-82' into 'glib-2-82'
Backport !4333 “gio: Fix multicast iface selection on macOS” to glib-2-82

See merge request GNOME/glib!4336
2024-10-07 21:54:46 +00:00
Nirbheek Chauhan
3b1f313837 gio: Fix multicast iface selection on macOS
ip_mreqn.imr_ifindex is not used correctly by the XNU kernel, and
causes us to bind to the default interface; so fallback to ip_mreq
and set the iface source address (not SSM).

Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/3489
2024-10-07 15:13:33 +01:00
Michael Catanzaro
2b08f0bd0b Merge branch 'backport-4176-openuri-leak-fix-glib-2-82' into 'glib-2-82'
Backport !4176 “gopenuriportal: Fix two memory leaks” to glib-2-82

See merge request GNOME/glib!4325
2024-10-01 18:03:49 +00:00
Julian Sparber
3487dc6cea gopenuriportal: Fix two memory leaks 2024-10-01 18:52:11 +01:00
Michael Catanzaro
998363d1bc Merge branch 'backport-4312-osx-appinfo-fix-glib-2-82' into 'glib-2-82'
Backport !4312 “macos: Fix URL launcher” to glib-2-82

See merge request GNOME/glib!4314
2024-09-28 18:27:16 +00:00
Arjan Molenaar
f78ffa53e6 macos: Fix URL launcher
URLs should be provided to the AppInfo.launch_uris() function.
2024-09-28 18:21:48 +01:00
Michael Catanzaro
41e92f4bdb Merge branch 'backport-4291-gvariant-analyzer-glib-2-82' into 'glib-2-82'
Backport !4291 “glib/gvariant: Fix check for G_ANALYZER_ANALYZING” to glib-2-82

See merge request GNOME/glib!4306
2024-09-25 16:08:52 +00:00
Philip Withnall
2f4607a6f1
gdbusdaemon: Fix check for G_ANALYZER_ANALYZING
As with the previous commit, this is _always_ defined in `gmacros.h`
and therefore the `#ifndef` will always be 0 even if disabled.
Just use `#if` instead.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-25 15:43:15 +01:00
Christian Hergert
800222c3c2 glib/gvariant: Fix check for G_ANALYZER_ANALYZING
This is _always_ defined in gmacros.h and therefore the #ifdef will always
be 1 even if were disabled. Just #if instead.

Closes: #3480
2024-09-25 15:43:11 +01:00
Philip Withnall
c6e8365133 Merge branch 'catalan' into 'glib-2-82'
Update Catalan translation

See merge request GNOME/glib!4285
2024-09-24 14:49:48 +00:00
Jordi Mas
d0cab59002 Update Catalan translation 2024-09-21 08:20:53 +02:00
Philip Withnall
bd40fbba13
2.82.1
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-19 21:56:26 +01:00
Philip Withnall
211be419cf Merge branch 'backport-4281-socks4a-buffer-overflow-glib-2-82' into 'glib-2-82'
Backport !4281 “gsocks4aproxy: Fix a single byte buffer overflow in connect messages” to glib-2-82

See merge request GNOME/glib!4282
2024-09-19 20:51:27 +00:00
Philip Withnall
f53843043e
ci: Force submodules to be fetched first in VS2017 CI jobs
No idea why this is now suddenly not working.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-19 21:40:11 +01:00
Michael Catanzaro
ec0b708b98 gsocks4aproxy: Fix a single byte buffer overflow in connect messages
`SOCKS4_CONN_MSG_LEN` failed to account for the length of the final nul
byte in the connect message, which is an addition in SOCKSv4a vs
SOCKSv4.

This means that the buffer for building and transmitting the connect
message could be overflowed if the username and hostname are both
`SOCKS4_MAX_LEN` (255) bytes long.

Proxy configurations are normally statically configured, so the username
is very unlikely to be near its maximum length, and hence this overflow
is unlikely to be triggered in practice.

(Commit message by Philip Withnall, diagnosis and fix by Michael
Catanzaro.)

Fixes: #3461
2024-09-19 21:07:53 +01:00
Michael Catanzaro
23a7a5d41d Merge branch 'wip/pwithnall/backport-3965-macos-ci-apple-silicon-glib-2-82' into 'glib-2-82'
Backport !3965 “Move to Apple Silicon based runner” to glib-2-82

See merge request GNOME/glib!4276
2024-09-17 13:51:54 +00:00
Philip Withnall
9af1726cd7
ci: Re-add contextual links for a FIXME message
To avoid people having to do git archaeology in future to work out why
`--wrap-mode=nodownload` is such a good idea.
2024-09-17 13:16:56 +01:00
René de Hesselle
c4cc1c3a5d Move to Apple Silicon based runner
Remove cmake as we no longer need to build ninja. We can use the
official wheel now since the runner's Python is 3.9 (before: 3.8).

Use the same comment regarding '--wrap-mode' as in the other jobs.

Download and use official ccache binary.

Add myself to the 'only' section in .gitlab-ci.yml so I can have
CI in my fork.

Disable a few deprecation warnings due to the much newer SDK of
the Apple Silicon machine.
2024-09-17 13:16:01 +01:00
Philip Withnall
d793986f02 Merge branch 'backport-4267-georgian-translation-glib-2-82' into 'glib-2-82'
Update Georgian translation (glib-2-82)

See merge request GNOME/glib!4274
2024-09-13 10:28:02 +00:00
NorwayFun
a7e87e10ed Update ka.po 2024-09-13 11:11:28 +01:00
Michael Catanzaro
d6b30aa9f1 Merge branch 'backport-4269-docs-fix-glib-2-82' into 'glib-2-82'
Backport !4269 “docs(glib): Fix link in string-utils ref” to glib-2-82

See merge request GNOME/glib!4271
2024-09-12 15:17:27 +00:00
Philip Withnall
3a5288b3e3 Merge branch 'glib-2-82' into 'glib-2-82'
Update Russian translation for 2-82

See merge request GNOME/glib!4270
2024-09-12 14:09:19 +00:00
FeRD (Frank Dana)
fee5da6893 docs(glib): Fix link in string-utils ref 2024-09-12 14:47:38 +01:00
jtux270
29f0c071ba Update Russian translation for 2-82 2024-09-12 13:09:00 +00:00
Philip Withnall
aec0a38158 Merge branch 'update-lt-glib-2-82' into 'glib-2-82'
Updated Lithuanian translation

See merge request GNOME/glib!4263
2024-09-11 17:15:01 +00:00
Philip Withnall
7b1eb02291 Merge branch 'update-danish-translation-2-82' into 'glib-2-82'
Update Danish translation (2-82)

See merge request GNOME/glib!4265
2024-09-11 10:49:18 +00:00
Ask Hjorth Larsen
8066748684 Update Danish translation 2024-09-10 22:58:34 +02:00
Aurimas Černius
2f4a3612c0 Updated Lithuanian translation 2024-09-10 22:00:42 +03:00
Philip Withnall
3f5e135ba1 Merge branch 'urbalazs-glib-2-82-patch-28588' into 'glib-2-82'
Update Hungarian translation

See merge request GNOME/glib!4258
2024-09-09 10:27:43 +00:00
Philip Withnall
9fcbb00124 Merge branch 'glib-2-82' into 'glib-2-82'
Update British English translation

See merge request GNOME/glib!4255
2024-09-09 10:22:48 +00:00
Philip Withnall
96952a9719 Merge branch 'glib-2-82' into 'glib-2-82'
Update Bulgarian translation

See merge request GNOME/glib!4251
2024-09-09 10:16:36 +00:00
Philip Withnall
7f726b83fa Merge branch 'glib-2-82' into 'glib-2-82'
Update Indonesian translation

See merge request GNOME/glib!4259
2024-09-09 10:10:05 +00:00
Andika Triwidada
2d1a297943 Updated Indonesian translation 2024-09-09 09:10:16 +00:00
Balázs Úr
946c2c3024 Update Hungarian translation 2024-09-09 06:53:06 +00:00