- 26 Jul, 2020 4 commits
-
-
Marc-André Lureau authored
Fix non-utf8 URI pct-decoding / unescape regression Closes #2165 See merge request !1569
-
Philip Withnall authored
gmain: fix fetching timebase on non-Intel Darwin Closes #858 See merge request !1566
-
Marc-André Lureau authored
The previous implementation of g_uri_unescape_segment() allowed non-utf8 decoded characters. uri_decoder() allows it too with FLAGS_ENCODED (I think it's abusing a bit the user-facing flags for some internal decoding behaviour) However, it didn't allow \0 in the decoded string. Let's have an extra check for that, outside of uri_decoder(). Fixes: d83d68d6Reported-by:
Matthias Clasen <mclasen@redhat.com> Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com>
-
Marc-André Lureau authored
Suggested-by:
Matthias Clasen <mclasen@redhat.com> Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com>
-
- 25 Jul, 2020 6 commits
-
-
Philip Withnall authored
Fix giomodule.cache being wrongly considered stale Closes #2127 See merge request !1560
-
Philip Withnall authored
glib.supp: Generalise some g_quark_init() suppressions Closes #2132 See merge request !1543
-
Philip Withnall authored
tests: Add tests for RFC 8536 v3 parsing of time zones See merge request !1578
-
Philip Withnall authored
gtask: Only override g_task_set_source_tag() for GLib ≥ 2.60 See merge request !1576
-
Philip Withnall authored
Fix support for binary xattrs Closes #422 See merge request !1568
-
Philip Withnall authored
uri: add illegal_characters argument to unescape_bytes See merge request !1577
-
- 24 Jul, 2020 1 commit
-
-
Philip Withnall authored
Signed-off-by:
Philip Withnall <withnall@endlessm.com> Helps: #422
-
- 23 Jul, 2020 2 commits
-
-
Emmanuele Bassi authored
glib: Use g_getenv everywhere instead of getenv See merge request !1579
-
Nirbheek Chauhan authored
`getenv()` doesn't work well on Windows, f.ex., it can't fetch env vars set with `SetEnvironmentVariable()`. This also means that it doesn't work at all when targeting UWP since that's the only way to set env vars in that case.
-
- 17 Jul, 2020 3 commits
-
-
Philip Withnall authored
This adds really basic validation that `GTimeZone` can successfully parse a ‘slim’ format timezone file. Signed-off-by:
Philip Withnall <withnall@endlessm.com> Helps: #2129
-
Philip Withnall authored
This will allow the following commit to refer to GitLab in its `g_test_bug()` call. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
Philip Withnall authored
GDateTime fixes to handle TZif footers Closes #2129 See merge request !1533
-
- 16 Jul, 2020 9 commits
-
-
Paul Eggert authored
-
Paul Eggert authored
* glib/gtimezone.c (set_tz_name): Use size, not NAME_SIZE, to clear the buffer. Suggested by Philip Withnall in: !1533 (comment 867859)
-
Paul Eggert authored
Since tzcode95f (1995), TZif files have had a trailing TZ string, used for timestamps after the last transition. This string is specified in Internet RFC 8536 section 3.3. init_zone_from_iana_info has ignored this string, causing it to mishandle timestamps past the year 2038. With zic's new -b slim flag, init_zone_from_iana_info would even mishandle current timestamps. Fix this by parsing the trailing TZ string and adding its transitions. Closes #2129
-
Paul Eggert authored
Time zone transition times can range from -167:59:59 through +167:59:59, according to Internet RFC 8536 section 3.3.1; this is an extension to POSIX. It is needed for proper support of TZif version 3 files.
-
Paul Eggert authored
POSIX allows hh to be 24; see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03
-
Paul Eggert authored
TZ strings like '<-03>3' were introduced in POSIX 1003.1-2001 and are currently specified in: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03
-
Paul Eggert authored
Version 3 was introduced in tzdb 2013e (2013). See Internet RFC 8536 section 3.1 under "ver(sion)".
-
Florentina Mușat authored
-
Yuri Chornoivan authored
-
- 15 Jul, 2020 7 commits
-
-
Marc-André Lureau authored
It's not clear to me why this argument was excluded in the first place, and Dan doesn't remember either. At least for consistency with unescape_string, add it. See also: !1574 (comment 867283)Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com>
-
Philip Withnall authored
g_task_set_name() was added in GLib 2.60, so only use it in the overridden definition of g_task_set_source_tag() if the user has said that they require GLib ≥ 2.60. This is a follow up to commit b08bd04a. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
Philip Withnall authored
uri: fix g_uri_unescape_string() regression Closes #2160 See merge request !1574
-
Marc-André Lureau authored
The illegal character set used to be applied only to the decoded characters. Fixes: #2160 Fixes: d83d68d6 ("guri: new URI parsing and generating functions") Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com>
-
Philip Withnall authored
gtestutils: Mark that g_assert_whatever() macros do not normally return Closes #1200 and #1288 See merge request !1553
-
Philip Chimento authored
g_assert_true(), g_assert_cmpint(), and friends, can return to the caller if test_nonfatal_assertions is set, but this is normally not the case. In particular, for the purposes of static analysis, we specifically don't want to assume that they might return. Clang has an analyzer_noreturn attribute for this exact purpose, which conveniently already has a macro in gmacros.h. Fixes: #1288 Fixes: #1200
-
Philip Withnall authored
portal: Read /.flatpak-info in thread-safe fashion Closes #2159 See merge request !1573
-
- 13 Jul, 2020 2 commits
-
-
holin authored
Co-authored-by:
Misty De Meo <mistydemeo@gmail.com>
-
Will Thompson authored
There is no guarantee that this function would not be called concurrently. Particularly since flatpak_info_read was set to TRUE before /.flatpak-info is actually read from disk, there is a potential race where a second thread would return default values for the various flags set from that file. Fixes #2159
-
- 12 Jul, 2020 2 commits
-
-
Jordi Mas authored
-
Aurimas Černius authored
-
- 09 Jul, 2020 2 commits
-
-
Florentina Mușat authored
-
Yuri Chornoivan authored
-
- 08 Jul, 2020 2 commits
-
-
Sergio Gelato authored
Correct an off-by-one error in hex_unescape_string()'s computation of the output string length. (Turned into a git-format patch by Philip Withnall. Original patch submitted on the Debian bug tracker, bug#962912.)
-
Sergio Gelato authored
It's safe to assume an escaped string doesn't contain embedded null bytes, but raw memory buffers (as returned by getxattr()) require more care. If the length of the data to be escaped is known, use that knowledge instead of invoking strlen(). (Turned into a git-format patch by Philip Withnall. One minor formatting tweak. Original patch submitted on the Debian bug tracker, bug#962912.) Fixes: #422
-