遵循以下最佳实践的项目将能够自愿的自我认证,并显示他们已经实现了核心基础设施计划(OpenSSF)徽章。 显示详细资料
[](https://www.bestpractices.dev/projects/6011)
<a href="https://www.bestpractices.dev/projects/6011"><img src="https://www.bestpractices.dev/projects/6011/badge"></a>
GLib is the low-level core library that forms the basis for projects such as GTK and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.
The project currently (as of April 2024) has 19 people with maintainer access (see the <maintainer> elements in https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib.doap?ref_type=heads). Some of them are more active than others, but they are all trusted to do maintainer tasks.
<maintainer>
It’s git
They’re tagged with the ‘newcomers’ label in GitLab, which is consistent across all of GNOME — so any newcomer to GNOME should be able to easily find GLib issues to tackle. See https://gitlab.gnome.org/GNOME/glib/-/issues/?sort=created_date&state=opened&label_name%5B%5D=4.%20Newcomers&first_page_size=20
https://gitlab.gnome.org/GNOME/glib/-/blob/main/CONTRIBUTING.md?ref_type=heads#user-content-code-reviews
All commits are reviewed before being merged: https://gitlab.gnome.org/GNOME/glib/-/blob/main/CONTRIBUTING.md?ref_type=heads#user-content-code-reviews
GLib’s build has been consistently reproducible for a long time: https://tests.reproducible-builds.org/debian/rb-pkg/experimental/amd64/glib2.0.html
meson test, as per https://mesonbuild.com/Unit-tests.html#testing-tool
meson test
https://gitlab.gnome.org/GNOME/glib/-/pipelines
GLib is hosted on GitLab, which is known to meet this. Test results: https://securityheaders.com/?q=gitlab.gnome.org&followRedirects=on
oss-fuzz is run on GLib: https://gitlab.gnome.org/GNOME/glib/-/blob/main/fuzzing/README.md
Assertions are enabled by default in all builds unless G_DISABLE_ASSERT is defined at configure time: https://gitlab.gnome.org/GNOME/glib/-/blob/main/meson.build#L262-L265
G_DISABLE_ASSERT
后退