summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gresolver: Add support for the HTTPS DNS typepgriffis/wip/resolver-httpsPatrick Griffis2021-12-226-4/+778
| | | | | | This is a new type used to request information about an HTTPS service and contains information like alternative hosts, ports, EncryptedClientHello keys, and protocols supported.
* Update Indonesian translationKukuh Syafaat2021-12-221-77/+82
|
* Merge branch 'meson-win32-static' into 'main'Philip Withnall2021-12-171-1/+1
|\ | | | | | | | | meson: Fix linking with static library in Windows See merge request GNOME/glib!2384
| * meson: Fix linking with static library in Windows Biswapriyo Nath2021-12-021-1/+1
| | | | | | libuuid is required for known folder IDs in glib/gutils.c file
* | Merge branch 'env-test' into 'main'Philip Withnall2021-12-173-110/+81
|\ \ | | | | | | | | | | | | Move tests/env-test.c into glib/tests/environment.c See merge request GNOME/glib!2399
| * | Move tests/env-test.c into glib/tests/environment.cEmmanuel Fleury2021-12-163-110/+81
| | |
* | | 2.71.02.71.0Philip Withnall2021-12-161-0/+190
|/ / | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | Merge branch 'wip/pwithnall/resolver-fuzzing' into 'main'Patrick Griffis2021-12-164-21/+84
|\ \ | | | | | | | | | | | | fuzzing: Add a fuzz test for parsing DNS records See merge request GNOME/glib!2396
| * | fuzzing: Add a fuzz test for parsing DNS recordsPhilip Withnall2021-12-162-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | Based on Patrick’s work to expose the parser for unit testing. See !2134. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | gthreadedresolver: Tighten up types and constness of parsing codePhilip Withnall2021-12-152-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | Not everything should be an int. This code is quite dated. We now try to use `guint8*` to represent arbitrary binary data, rather than `guchar*` (which makes it sound like some form of string). Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | gthreadedresolver: Export g_resolver_records_from_res_query()Patrick Griffis2021-12-152-1/+10
| | | | | | | | | | | | | | | | | | | | | While it’s not a supported public part of the API, exporting this symbol from the library means we can easily test the DNS record parser, which is important to do since it handles untrusted data from the network.
* | | Merge branch 'move_dirname_tests' into 'main'Philip Withnall2021-12-163-118/+62
|\ \ \ | | | | | | | | | | | | | | | | Moving tests/dirname-test.c to glib/tests/fileutils.c See merge request GNOME/glib!2397
| * | | Moving tests/dirname-test.c to glib/tests/fileutils.cEmmanuel Fleury2021-12-163-118/+62
|/ / / | | | | | | | | | Helps issue #1434
* | | Merge branch 'move_tests/child-test_to_glib/tests/spawn-multithreaded' into ↵Philip Withnall2021-12-163-200/+164
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'main' Merging tests/child-test.c into glib/tests/spawn-multithreaded.c See merge request GNOME/glib!2390
| * | | Improving the tests moved in spawn-multithreadedEmmanuel Fleury2021-12-161-25/+30
| | | |
| * | | Merging tests/child-test.c into glib/tests/spawn-multithreaded.cEmmanuel Fleury2021-12-153-200/+159
| | | | | | | | | | | | | | | | Helps issue #1434
* | | | Merge branch 'barch/glist_position_unspecified_behavior' into 'main'Philip Withnall2021-12-161-12/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | fix /list/position test See merge request GNOME/glib!2398
| * | | | Silence MSVC C4312 in list testsCharles Barto2021-12-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning warns on widening casts from integer to pointer type, because those casts can be problematic for porting to new pointer sizes. The code in question didn't do any bad things here so an intermediate cast to size_t was added to silence the warning
| * | | | fix /list/position testCharles Barto2021-12-151-11/+15
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This test was exploiting unspecified behavior w.r.t. the address of string literals, It expected them to be pooled (the same literal has the same address, at least within a TU), but MSVC does not pool by default, leading to a failure.
* | | | Update Portuguese translationHugo Carvalho2021-12-151-73/+78
|/ / /
* | | Update Ukrainian translationYuri Chornoivan2021-12-151-79/+86
|/ /
* | Merge branch 'mcatanzaro/posix-spawn2' into 'main'Philip Withnall2021-12-153-55/+394
|\ \ | | | | | | | | | | | | | | | | | | gspawn: Implement fd remapping for posix_spawn codepath, and fix file descriptor conflation issues Closes #2503 and #2506 See merge request GNOME/glib!1968
| * | Add test for child_err_report_fd conflation with target fdsMichael Catanzaro2021-12-141-7/+35
| | | | | | | | | | | | This tests for glib#2506.
| * | Add tests for GSubprocess fd conflation issuesMichael Catanzaro2021-12-142-2/+195
| | | | | | | | | | | | | | | | | | | | | This tests for #2503. It's fragile, but there is no non-fragile way to test this. If the test breaks in the future, it will pass without successfully testing the bug, not fail spuriously, so I think this is OK.
| * | gspawn: add new error message for open() failuresMichael Catanzaro2021-12-141-4/+13
| | | | | | | | | | | | Reporting these as dup2() failures is bogus.
| * | gspawn: Check from errors from safe_dup2() and dupfd_cloexec()Michael Catanzaro2021-12-141-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Although unlikely, these functions can fail, e.g. if we run out of file descriptors. Check for errors to improve robustness. This is especially important now that I changed our use of dupfd_cloexec() to avoid returning fds smaller than the largest fd in target_fds. An application that attempts to remap to the highest-allowed fd value deserves at least some sort of attempt at error reporting, not silent failure.
| * | gsubprocess: ensure we test fd remapping on the posix_spawn() codepathMichael Catanzaro2021-12-141-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should run test_pass_fd twice, once using gspawn's fork/exec codepath and once attempting to use its posix_spawn() codepath. There's no guarantee we'll actually get the posix_spawn() codepath, but it works for now on Linux. For good measure, run it a third time with no flags at all. This causes the test to fail if I separately break the fd remapping implementation. Without this, we fail to test fd remapping on the posix_spawn() codepath.
| * | gspawn: Implement fd remapping for posix_spawn codepathMichael Catanzaro2021-12-141-7/+61
| | | | | | | | | | | | | | | | | | This means that GSubprocess will (sometimes) be able to use the optimized posix_spawn codepath instead of having to fall back to fork/exec.
| * | gspawn: fix fd remapping conflation issueMichael Catanzaro2021-12-141-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently dup all source fds to avoid possible conflation with the target fds, but fail to consider that the result of a dup might itself conflict with one of the target fds. Solve this the easy way by duping all source_fds to values that are greater than the largest fd in target_fds. Fixes #2503
| * | gspawn: fix hangs when duping child_err_report_fdMichael Catanzaro2021-12-141-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case child_err_report_fd conflicts with one of the target_fds, the code here is careful to dup child_err_report_fd in order to avoid conflating the two. It was a good idea, but evidently was not tested, because the newly-created fd is not created with CLOEXEC set. This means it stays open in the child process, causing the parent to hang forever waiting to read from the other end of the pipe. Oops! The fix is simple: just set CLOEXEC. This removes our only usage of the safe_dup() function, so it can be dropped. Fixes #2506
| * | gspawn: Improve error message when dup failsMichael Catanzaro2021-12-141-1/+1
| | | | | | | | | | | | | | | This error message is no longer accurate now that we allow arbitrary fd remapping.
| * | gspawn: use close_and_invalidate moreMichael Catanzaro2021-12-141-1/+1
|/ /
* | Merge branch 'datetime_tests' into 'main'Philip Withnall2021-12-142-43/+0
|\ \ | | | | | | | | | | | | Removing unnecessary test on gdatetime.c See merge request GNOME/glib!2393
| * | Removing unnecessary test on gdatetime.cEmmanuel Fleury2021-12-142-43/+0
| | | | | | | | | | | | Helps issue #1434
* | | Merge branch 'cxx-test' into 'main'Philip Withnall2021-12-149-15/+133
|\ \ \ | | | | | | | | | | | | | | | | Removing redundant cxx test tests/cxx-test.cpp See merge request GNOME/glib!2391
| * | | Distribute cxx test tests/cxx-test.cpp to each module tests directoryEmmanuel Fleury2021-12-149-15/+133
| |/ / | | | | | | | | | | | | | | | | | | tests/cxx-test.cpp is removed and splitted into gio/tests/cxx.cpp, gmodule/tests/cxx.cpp and gobject/tests/cxx.cpp. Helps issue #1434
* | | Merge branch 'main' into 'main'Philip Withnall2021-12-142-14/+95
|\ \ \ | | | | | | | | | | | | | | | | GDesktopAppInfo: Try to always correctly set id See merge request GNOME/glib!2283
| * | | GDesktopAppInfo: Try to always correctly set idIvaylo Dimitrov2021-12-142-14/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specs say that on Unix id should be desktop file id from the xdg menu specification, however, currently code just uses basename of .desktop file. Fix that by finding the .desktop file in all the desktop_file_dirs and use basename only as a fallback. See https://specifications.freedesktop.org/menu-spec/latest/go01.html#term-desktop-file-id and https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html#desktop-file-id "To determine the ID of a desktop file, make its full path relative to the $XDG_DATA_DIRS component in which the desktop file is installed, remove the "applications/" prefix, and turn '/' into '-'." Also, add unit test that verifies Desktop Id is being correctly set Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
* | | | Updated Lithuanian translationAurimas Černius2021-12-141-264/+280
|/ / /
* | | Merge branch 'moving_completion_tests' into 'main'Philip Withnall2021-12-143-18/+33
|\ \ \ | |/ / |/| | | | | | | | Move tests/completion-test.c to glib/tests/completion.c See merge request GNOME/glib!2392
| * | Move tests/completion-test.c to glib/tests/completion.cEmmanuel Fleury2021-12-133-18/+33
|/ / | | | | | | Helps issue #1434
* | Updated Lithuanian translationAurimas Černius2021-12-111-179/+184
| |
* | Merge branch 'xlocale-musl' into 'main'Philip Withnall2021-12-101-10/+7
|\ \ | | | | | | | | | | | | | | | | | | gstrfuncs: don't require nonstandard functions for USE_XLOCALE. Closes #2553 See merge request GNOME/glib!2388
| * | gstrfuncs: don't require nonstandard functions for USE_XLOCALE.Érico Nogueira2021-12-091-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it so USE_XLOCALE is set whenever newlocale() and uselocale() are available. This way, we can still use the _g_snprintf() path for some functions, and also use the *_l functions when they are available. newlocale(3) are uselocale(3) part of POSIX 2008, while the *_l functions being used are nonstandard glibc extensions. Gating all the locale functionality behind them meant we were using fallbacks on non glibc platforms unnecessarily. Further changes to this code could add fallback for the non _l suffixed number parsing functions, but that might be unnecessary complexity. Fixes #2553
* | | Update Romanian translationDaniel Șerbănescu2021-12-101-177/+182
| | | | | | | | | | | | (cherry picked from commit 409326e1d4f003e0f84c2c5a5dff8fbf5841ad4b)
* | | Merge branch 'project-docs' into 'main'Sebastian Dröge2021-12-091-11/+26
|\ \ \ | |/ / |/| | | | | | | | docs: Update the README a little See merge request GNOME/glib!2387
| * | docs: Update the README a littlePhilip Withnall2021-12-091-11/+26
|/ / | | | | | | Signed-off-by: Philip Withnall <withnall@endlessm.com>
* | Merge branch 'readme-docs' into 'main'Sebastian Dröge2021-12-081-0/+8
|\ \ | | | | | | | | | | | | docs: Add API documentation links to the README See merge request GNOME/glib!2386
| * | docs: Add API documentation links to the READMEPhilip Withnall2021-12-081-0/+8
|/ / | | | | | | | | | | | | Might make the API documentation a little easier to find from the GitLab landing page for GLib. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | Update Indonesian translationAndika Triwidada2021-12-051-385/+349
| |