| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This should satisfy the documentation build check.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| |
| |
| | |
Update GFileInfo to use GDateTime as timestamps
Closes #2281
See merge request GNOME/glib!2017
|
| | |
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| | |
GIO W32: Pin gio DLL
Closes #2300 and #2359
See merge request GNOME/glib!2016
|
| |
| |
| |
| |
| | |
This call increments the DLL refcount by default and
needs a flag to avoid that.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
fuzzing: Fix assertion failure in fuzz_paths.c
See merge request GNOME/glib!2013
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
|/|
| |
| |
| |
| | |
galloca: Clarify alloca() sizes must always be controlled by the program
Closes #2363
See merge request GNOME/glib!2014
|
|/
|
|
|
|
|
|
| |
To avoid security vulnerabilities.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes: #2363
|
|\
| |
| |
| |
| | |
make g_tree_remove_all public
See merge request GNOME/glib!1986
|
| |
| |
| |
| |
| | |
g_tree_remove_all is useful and the corresponding function in GHashTable
is exposed, so make this function public is meaningful.
|
|\ \
| | |
| | |
| | |
| | | |
fuzzing: Add fuzz tests for functions which parse paths
See merge request GNOME/glib!2006
|
| | |
| | |
| | |
| | | |
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
docs: Replace git.gnome.org with gitlab.gnome.org urls
See merge request GNOME/glib!2012
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
docs: Fix example program link
See merge request GNOME/glib!2011
|
|/ / |
|
|\ \
| |/
|/|
| |
| |
| |
| | |
gkeyfile: Fix crash when parsing translations on a second load
Closes #2361
See merge request GNOME/glib!2009
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| | |
docs: Add a policy for handling security issues
See merge request GNOME/glib!1985
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | |
| | |
| | | |
tests: Deactivate tls-bindings test suite for windows
See merge request GNOME/glib!2008
|
|/ /
| |
| |
| |
| |
| | |
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
Helps: #2297
|
|\ \
| | |
| | |
| | |
| | | |
Add g_steal_fd() to API
See merge request GNOME/glib!1966
|
|/ /
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | |
| | |
| | | |
introspection: Remove 'caller-allocates' from POD types
See merge request GNOME/glib!2005
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | | |
goption.c: Simplfy parse_short_option()
See merge request GNOME/glib!1999
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
'master'
gpollableinputstream: Add missing annotation
See merge request GNOME/glib!1998
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Resolve "Add additional unit tests for D-Bus name watching"
Closes #2011
See merge request GNOME/glib!1904
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
The two structures share some common variable name but it's confusing.
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Include glibconfig.h to get the G_OS_UNIX token
See merge request GNOME/glib!1996
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
gversionmacros: Add version macros for GLib 2.70
See merge request GNOME/glib!1965
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
data-to-c.py: autodetect line endings
Closes #2340
See merge request GNOME/glib!1974
|