| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Passing NULL to newlocale is not warrantied to return an
error, but only "may" according to POSIX.1-2008[1]. For this
function glibc returns an error instead of treating the NULL
pointer as undefined behaviour. However, that is not the case
in muslc, which generates a segmentation fault.
This commit makes sure that any call to newlocale is preceded
by a NULL pointer check. It makes the code more conformant to
POSIX.1-2008 and gives an intepretation of what a NULL locale
means in this piece of code.
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/newlocale.html
|
|
|
|
| |
This annotation is deprecated, replace it with the right one.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
See docs:
- https://docs.gitlab.com/ee/user/project/releases/
- https://docs.gitlab.com/ee/ci/yaml/index.html#release
|
| |
|
|
|
|
|
| |
See docs:
- https://docs.gitlab.com/ee/user/application_security/sast/
|
| |
|
|
|
|
|
|
|
|
| |
Using rawhide is failing with:
"
Error: Error downloading packages:
Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start]
"
|
|
|
|
| |
Tarball will be at build/meson-dist/ so it can be used for releases
|
|
|
|
| |
(cherry picked from commit cd3733c10df296b180d54b975d208e44545b4c28)
|
| |
|
|
|
|
|
|
|
|
|
| |
The value of the show-all-sources setting influences
what layouts we provide, so monitor the setting, and
when it changes, clear the cached layouts and emit
the new GnomeXkbInfo::layouts-changed signal.
Fixes: #195
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(cherry picked from commit 06583bb8b5d5f96981ce8556411620fbdc808f98)
|
|
|
|
| |
(cherry picked from commit edff32abe70552baa395923214627b7819a58bb4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Copy-paste error introduced in aa7e3440511. We're inside the loop listing
through all layouts here so returning early means we skip any layout after the
duplicate one.
Before:
$ test-xkb-info | wc -l
3913
Now:
$ test-xkb-info | wc -l
3923
Fixes aa7e344051170ea47585d3d72b1a36e3991121f9
Found by Jason Francis (@jf)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This matches the behavior to the one in the old code path before
libxkbregistry.
This also fixes a use-after-free bug when a duplicate layout is present. The
same layout struct is a member of multiple hashtables, specifically
priv->layouts_table, priv->layouts_by_language and priv->layouts_by_country.
When the duplicate layout is added, add_layouts calls g_hash_table_replace
(priv->layouts_table, l->id, l) which frees the original layout - but the
layouts_by_{country|language} still have that now-freed layout.
Immediately afterwards, add_layouts calls add_layout_to_locale_tables () which
calls add_layout_to_table () which triggers a use-after-free.
Avoid all this by simply skipping any duplicate layout.
Reproducible with
gsettings set org.gnome.desktop.input-sources show-all-sources true
valgrind /usr/libexec/gnome-desktop-debug/test-xkb-info
Requires xkeyboard-config <= 2.32, it has a duplicate cm(mmuock) entry
(one is marked exotic, hence the need for show-all-sources).
Fixes #190
Bug analysis by Barnabás Pőcze (@pobrn)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
g_uri_escape_string() returns an allocated string, we need to free it.
|
|
|
|
| |
The incorrect time had an offset of one hour.
|
|
|
|
| |
This reverts commit df40d5d46e210c242820adf604293a7bb07dea4f.
|
|
|
|
| |
This reverts commit b32d0dd4b9462ac6627fe8a754d0793ad09c2e0a.
|
|
|
|
|
|
| |
locale-dependent functions""
This reverts commit 96565763e950e9c281751c5fe35c9ba83cb61ac8.
|
|
|
|
|
|
|
| |
Don't force bind /etc/ld.so.cache, as it isn't used on non-glibc systems
such as MUSL-based OSes.
Closes: #117
|
|
|
|
|
|
| |
functions"
This reverts commit 4ea56a97a510cf2c587229231211552daa84d1fc.
|
|
|
|
| |
This reverts commit 0c573644bc3ac18afe448318869efadbe5ebf7a5.
|
|
|
|
| |
This reverts commit 8ddb9dce8ffe070b151f4f7a383863d5f5f139b6.
|
| |
|
|
|
|
|
| |
xlocale.h contains the implementations for locale_t, newlocale and
uselocale on MacOS and FreeBSD
|