summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* glib-sections.txt: Add g_macro__has_extension in private sectionclang-cl-improvementsChun-wei Fan2021-03-311-0/+1
| | | | This should satisfy the documentation build check.
* gmacros.h: Improve check for C _Static_assertChun-wei Fan2021-03-301-1/+8
| | | | | | | | | Use the GCC/Clang macros __has_extension() and __has_feature() on c_static_assert, which is the documented way for GCC/CLang to check for _Static_assert if C11 mode is not enabled, as suggested by Aleksandr Mezin. As a result, add a private macro that is defined to be __has_extension if it exists, otherwise it is considered to be always false.
* gmacros.h: Use _Static_assert for clangChun-wei Fan2021-03-301-1/+1
| | | | | | | It appears that CLang supports _Static_assert() even when not in C11 mode, since at least CLang 3.1, so let's just use that for CLang builds. Fixes issue #2338.
* msvc_recommended_pragmas.h: Refine for clang-clChun-wei Fan2021-03-302-5/+12
| | | | | | | | | | | Make msvc_recommended_pragmas.h work better with clang-cl so that we can use that to eliminate some warnings that are emitted as it also consumes Microsoft compiler and SDK headers. Also, for GLib builds, force-include msvc_recommended_pragmas.h for clang-cl builds as well, as it becomes usable and useful there. Fixes issue #2357.
* Merge branch 'fixing_2281' into 'master'Philip Withnall2021-03-294-0/+323
|\ | | | | | | | | | | | | Update GFileInfo to use GDateTime as timestamps Closes #2281 See merge request GNOME/glib!2017
| * gfileinfo: Add tests for get and set {access,creation}_date_time APIsAbanoub Ghadban2021-03-281-0/+149
| |
| * gfileinfo: Add APIs to get and set {access,creation}_date_timeAbanoub Ghadban2021-03-283-0/+174
| |
* | Merge branch 'gio-appinfo-thread-crash' into 'master'Philip Withnall2021-03-292-1/+9
|\ \ | |/ |/| | | | | | | | | GIO W32: Pin gio DLL Closes #2300 and #2359 See merge request GNOME/glib!2016
| * Don't leak a handle from _g_io_win32_get_module()Руслан Ижбулатов2021-03-251-1/+2
| | | | | | | | | | This call increments the DLL refcount by default and needs a flag to avoid that.
| * GIO W32: Pin gio DLLРуслан Ижбулатов2021-03-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows gio runs a thread to update appinfo at startup. If someone unloads gio (this happens when a dynamic gio module gets unloaded by a program that doesn't use gio itself), there doesn't seem to be a way to detect that until gio is already gone, and as soon as gio is gone, the thread crashes, since it tries to execute instructions that are no longer there. Holding an extra reference to gio DLL fixes this, but it also prevents gio from being unloaded, and there's no "weak references" for DLLs. So we just pin gio and acknowledge that it will never be unloaded. Fixes #2300 Fixes #2359
* | Update Chinese (China) translationDz Chen2021-03-271-44/+44
| |
* | Merge branch 'fuzz-path-fix' into 'master'Simon McVittie2021-03-251-2/+2
|\ \ | | | | | | | | | | | | fuzzing: Fix assertion failure in fuzz_paths.c See merge request GNOME/glib!2013
| * | fuzzing: Fix assertion failure in fuzz_paths.cPhilip Withnall2021-03-251-2/+2
| |/ | | | | | | | | | | | | | | | | | | If operating on a zero-length input, the return values of `g_path_get_basename()` and `g_path_get_dirname()` are correctly `.`. The assertions in the test didn’t account for this. oss-fuzz#32454 Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | Merge branch '2363-alloca-docs' into 'master'Simon McVittie2021-03-251-0/+11
|\ \ | |/ |/| | | | | | | | | galloca: Clarify alloca() sizes must always be controlled by the program Closes #2363 See merge request GNOME/glib!2014
| * galloca: Clarify alloca() sizes must always be controlled by the programPhilip Withnall2021-03-251-0/+11
|/ | | | | | | | To avoid security vulnerabilities. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2363
* Merge branch 'master' into 'master'Philip Withnall2021-03-244-1/+46
|\ | | | | | | | | make g_tree_remove_all public See merge request GNOME/glib!1986
| * gtree: Make g_tree_remove_all() publicliuyangming2021-03-234-1/+46
| | | | | | | | | | g_tree_remove_all is useful and the corresponding function in GHashTable is exposed, so make this function public is meaningful.
* | Merge branch 'fuzz-path-functions' into 'master'Philip Withnall2021-03-243-0/+53
|\ \ | | | | | | | | | | | | fuzzing: Add fuzz tests for functions which parse paths See merge request GNOME/glib!2006
| * | fuzzing: Add fuzz tests for functions which parse pathsPhilip Withnall2021-03-243-0/+53
| | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | Merge branch 'git-to-gitlab' into 'master'Philip Withnall2021-03-2411-18/+18
|\ \ \ | |/ / |/| | | | | | | | docs: Replace git.gnome.org with gitlab.gnome.org urls See merge request GNOME/glib!2012
| * | docs: Replace git.gnome.org with gitlab.gnome.org urlsAvinash Sonawane2021-03-2411-18/+18
|/ /
* | Merge branch 'docs' into 'master'Philip Withnall2021-03-241-1/+1
|\ \ | | | | | | | | | | | | docs: Fix example program link See merge request GNOME/glib!2011
| * | docs: Fix example program linkAvinash Sonawane2021-03-241-1/+1
|/ /
* | Merge branch '2361-key-file-locale-caching' into 'master'Sebastian Dröge2021-03-232-1/+45
|\ \ | |/ |/| | | | | | | | | gkeyfile: Fix crash when parsing translations on a second load Closes #2361 See merge request GNOME/glib!2009
| * gkeyfile: Fix crash when parsing translations on a second loadPhilip Withnall2021-03-232-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | If the same `GKeyFile` is reused to load multiple different key files, any loads after the first which encounter translated keys will crash, because clearing the data from the first load cleared the cached language names, but didn’t clear `checked_locales`, so they were never reloaded. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2361
| * gkeyfile: Drop a redundant checkPhilip Withnall2021-03-231-1/+1
|/ | | | | | | | It should not be possible for `->locales` to be set without `->checked_locales` being set, so drop the redundant check. This helps with branch code coverage. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* Merge branch 'security-policy' into 'master'Philip Withnall2021-03-231-0/+67
|\ | | | | | | | | docs: Add a policy for handling security issues See merge request GNOME/glib!1985
| * docs: Add a policy for handling security issuesPhilip Withnall2021-03-111-0/+67
| | | | | | | | | | | | | | | | | | | | This also gives details of how to report a security issue, including the key point that merge requests are (unfortunately) not confidential. Heavily based on the flatpak security policy which just landed: https://github.com/flatpak/flatpak/blob/master/SECURITY.md Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | Merge branch 'tls-bindings-ci-failure' into 'master'Philip Withnall2021-03-231-1/+8
|\ \ | | | | | | | | | | | | tests: Deactivate tls-bindings test suite for windows See merge request GNOME/glib!2008
| * | tests: Deactivate tls-bindings test suite for windowsFrederic Martinsons2021-03-231-1/+8
|/ / | | | | | | | | | | Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Helps: #2297
* | Merge branch 'wip/steal-fd' into 'master'Philip Withnall2021-03-226-23/+69
|\ \ | | | | | | | | | | | | Add g_steal_fd() to API See merge request GNOME/glib!1966
| * | gmain: Add g_steal_fd() to APISimon McVittie2021-03-226-23/+69
|/ / | | | | | | | | | | | | This is basically glnx_steal_fd() from libglnx. We already had two private implementations of it in GLib. Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Merge branch 'remove-out-caller-allocates-from-pod-types' into 'master'Sebastian Dröge2021-03-202-19/+19
|\ \ | | | | | | | | | | | | introspection: Remove 'caller-allocates' from POD types See merge request GNOME/glib!2005
| * | introspection: Remove 'caller-allocates' from POD typesPhilip Chimento2021-03-202-19/+19
|/ / | | | | | | | | | | | | | | | | The (out caller-allocates) and (out callee-allocates) annotations are meant for structured or pointer types. Plain old data types are just regular out parameters and don't need the annotation about who allocates them. See: https://gitlab.gnome.org/GNOME/gjs/-/issues/386
* | Merge branch 'parsing' into 'master'Philip Withnall2021-03-191-12/+3
|\ \ | | | | | | | | | | | | goption.c: Simplfy parse_short_option() See merge request GNOME/glib!1999
| * | goption.c: Simplfy parse_short_option()Avinash Sonawane2021-03-191-12/+3
| | |
* | | Merge branch 'gpollableinputstream-read-nonblocking-caller-allocates' into ↵Sebastian Dröge2021-03-191-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'master' gpollableinputstream: Add missing annotation See merge request GNOME/glib!1998
| * | | gpollableinputstream: Add missing annotationPhilip Chimento2021-03-181-2/+2
| |/ / | | | | | | | | | | | | | | | | | | The buffer for g_pollable_input_stream_read_nonblocking() is an out parameter which the caller must allocate. See https://gitlab.gnome.org/GNOME/gjs/-/issues/389
* | | Update Serbian translationМарко Костић2021-03-191-119/+109
|/ /
* | Update Chinese (China) translationBoyuan Yang2021-03-191-606/+709
| |
* | Merge branch '2011-add-dbus-watch-name-tests' into 'master'Philip Withnall2021-03-181-30/+295
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Add additional unit tests for D-Bus name watching" Closes #2011 See merge request GNOME/glib!1904
| * | Add two test cases which covers disconnection scenario in another threadFrederic Martinsons2021-03-171-0/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Check that schedule_call_in_idle code branch of gdbusnamewatching.c is working to call vanished handler in the thread which had watched the name 2) Check cancellation of vanished handler if the name is unwatched before vanished callback is dispatched. Closes #2011 Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
| * | Use OwnNameData structure when owning a name instead of WatchNameData.Frederic Martinsons2021-03-171-23/+25
| | | | | | | | | | | | | | | | | | The two structures share some common variable name but it's confusing. Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
| * | Correct memleak introduced by !1885Frederic Martinsons2021-03-171-7/+10
| | | | | | | | | | | | Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
* | | Merge branch 'citrus-it-master-patch-49452' into 'master'Philip Withnall2021-03-181-0/+1
|\ \ \ | | | | | | | | | | | | | | | | Include glibconfig.h to get the G_OS_UNIX token See merge request GNOME/glib!1996
| * | | Include glibconfig.h to get the G_OS_UNIX tokenAndy Fiddaman2021-03-181-0/+1
|/ / /
* | | Merge branch 'wip/start-2-70' into 'master'Philip Withnall2021-03-187-2/+72
|\ \ \ | | | | | | | | | | | | | | | | gversionmacros: Add version macros for GLib 2.70 See merge request GNOME/glib!1965
| * | | build: Post-release version bump to 2.69.0wip/start-2-70Philip Withnall2021-03-181-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | gversionmacros: Add version macros for GLib 2.70Simon McVittie2021-03-186-1/+71
| | | | | | | | | | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | | | Merge branch 'fix-data-to-c-line-endings' into 'master'Philip Withnall2021-03-181-3/+4
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | data-to-c.py: autodetect line endings Closes #2340 See merge request GNOME/glib!1974