• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

drakenclimber / libcgroup
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: alert-autofix-11
DEFAULT BRANCH: main
Repo Added 19 Nov 2020 06:53PM UTC
Files 39
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH test
branch: test
CHANGE BRANCH
x
Reset
  • test
  • 066
  • 3pl
  • add-cgx-man-pages
  • alert-autofix-11
  • allow-space-cgrules
  • cgall2
  • cgcompare
  • cgcompare2
  • cgconfigscript
  • cgcreate
  • cgroup-controller
  • cgroup-controller-v2
  • cgroup-controller-v3
  • cgsos
  • cgsos2
  • cgsos3
  • clang
  • cleanup-subtree
  • codeql
  • consts-rework
  • coverity
  • dependabot
  • dist-subdirs-2.0
  • distro
  • doc
  • extra-logging
  • fix-005
  • fix-cgxset
  • fix-rel2.0
  • fix008
  • fixspaces
  • fixwarning
  • fixwarnings
  • foo
  • ftest-lock
  • get_next_rule_field
  • getprocs
  • getprocs2
  • github
  • github-workflow-ci
  • issues/21
  • issues/38
  • issues/61
  • issues/62
  • issues/66
  • issues/71
  • issues/71v2
  • issues/73
  • issues/advanced-cgget
  • issues/betterlogs
  • issues/cgclear
  • issues/cgclear2
  • issues/cgconfig-tests
  • issues/cgconfigparser
  • issues/cgexec-test
  • issues/cgget-refactor
  • issues/cgget-refactor2
  • issues/cgget-tests
  • issues/cgrules
  • issues/cgrules2
  • issues/cgrules3
  • issues/cgrules4
  • issues/cgset-tests
  • issues/cgsnapshot
  • issues/cgsnapshot2
  • issues/cgv2-tests
  • issues/cgxget
  • issues/cgxget3
  • issues/cgxget4
  • issues/cgxget5
  • issues/cgxget5-pybindings
  • issues/cgxget5-pybindings3
  • issues/cgxget5-pybindings4
  • issues/cgxget5-pybindings5
  • issues/cgxget5-pybindings6
  • issues/cgxget5-toolslib
  • issues/codecovrel2.0
  • issues/codeql
  • issues/contributing
  • issues/coveralls_badge
  • issues/daemoncodecov
  • issues/delete-cgclear
  • issues/delete-legacy
  • issues/distcheck
  • issues/doxygen
  • issues/doxygen_badge
  • issues/emptycg
  • issues/emptycgcreate
  • issues/finalize
  • issues/fix-warnings
  • issues/fixcgset
  • issues/fixme
  • issues/fixmerge
  • issues/fixtest004
  • issues/fixwarnings
  • issues/ftests_cgv2
  • issues/github_actions
  • issues/improvecodecov
  • issues/kill-child
  • issues/lgtm
  • issues/lscgroup
  • issues/lssubsys
  • issues/mainbadge
  • issues/mount-pybindings
  • issues/nocontainer
  • issues/noinst
  • issues/random
  • issues/readme
  • issues/rel2-codeql
  • issues/remove-libs
  • issues/removetestsdir
  • issues/threaded
  • issues/update-map
  • issues/v2.0.1
  • issues/validate
  • leaf-node
  • linter
  • list-cgroup-mnts-api
  • main
  • master
  • memory_abstraction
  • merge-tests
  • merge-tests-3.0
  • mount-table-overflow
  • nosystemd-job
  • options
  • pids
  • ps
  • pull/44
  • pull/45
  • pull/46
  • release-2.0
  • release-3.0
  • release-3.2
  • rename-python-set-default
  • rework-testing
  • set-property
  • set-property2
  • set-property3
  • set-property4
  • setup_mode
  • systemd
  • systemd-cexample
  • systemd-cgconfig
  • systemd-cmdline
  • systemd-pythonexample
  • test-reliability
  • test2
  • tests2
  • undefsystemd
  • update-gtest
  • update-rel2-tests
  • wip/abstract_cgget2
  • wip/cgexec-test
  • wip/cgset-tests
  • wip/cgsnapshot
  • wip/cgxget
  • wip/cgxget2
  • wip/cgxget3
  • wip/cgxget4
  • wip/delete-legacy
  • wip/dist-subdirs
  • wip/empty_cgcreate2
  • wip/emptycgs
  • wip/gh_actions
  • wip/refactor_cgget2
  • wip/release-2.0
  • wip/systemd
  • wip/systemd10
  • wip/systemd11
  • wip/systemd12
  • wip/systemd2
  • wip/systemd3
  • wip/systemd4
  • wip/systemd5
  • wip/systemd6
  • wip/systemd7
  • wip/systemd8
  • wip/systemd9
  • wip/test-cgget.new
  • wip/test-cgget.old

08 Jan 2026 02:32PM UTC coverage: 56.067% (-0.2%) from 56.221%
20820343591

push

github

drakenclimber
src/api.c: potential null ptr deref in cg_get_cgroups_from_proc_cgroups

In function cg_get_cgroups_from_proc_cgroups there is an allocation of memory by calling
malloc(buff_len).
Result of this allocation is not checked,
and in case of OOM it'll lead to null ptr deref.

This commit adds handling of possible null ptr as a result of failed
memory allocation.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 8a40bf6f6)

1 of 4 new or added lines in 1 file covered. (25.0%)

499 existing lines in 2 files now uncovered.

5577 of 9947 relevant lines covered (56.07%)

524.51 hits per line

Relevant lines Covered
Build:
Build:
9947 RELEVANT LINES 5577 COVERED LINES
524.51 HITS PER LINE
Source Files on test
  • Tree
  • List 38
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20820343591 test src/api.c: potential null ptr deref in cg_get_cgroups_from_proc_cgroups In function cg_get_cgroups_from_proc_cgroups there is an allocation of memory by calling malloc(buff_len). Result of this allocation is not checked, and in case of OOM it'll ... push 08 Jan 2026 02:34PM UTC drakenclimber github
56.07
20820106962 test src/api.c: potential null ptr deref in cg_get_cgroups_from_proc_cgroups In function cg_get_cgroups_from_proc_cgroups there is an allocation of memory by calling malloc(buff_len). Result of this allocation is not checked, and in case of OOM it'll ... push 08 Jan 2026 02:26PM UTC drakenclimber github
56.22
16730702375 test github: Add clang workflow Add a workflow that will build libcgroup using clang. Do not use the setup-libcgroup action as it assumes GCC configurations. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> push 04 Aug 2025 06:09PM UTC drakenclimber github
56.19
16730540534 test github: Add clang workflow Add a workflow that will build libcgroup using clang Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> push 04 Aug 2025 06:00PM UTC drakenclimber github
56.18
16273789031 test ftests/cgroup: Add timeout to cgrulesengd cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated with SIGKILL. To handle this, introduce a 20-second timeout that is passed to __run(), which in turn calls subproc.kill() to termina... push 14 Jul 2025 05:39PM UTC drakenclimber github
56.03
16273240585 test ftests/cgroup: Add timeout to cgrulesengd cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated with SIGKILL. To handle this, introduce a 20-second timeout that is passed to __run(), which in turn calls subproc.kill() to termina... push 14 Jul 2025 05:13PM UTC drakenclimber github
56.15
16273218016 test ftests/cgroup: Add timeout to cgrulesengd cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated with SIGKILL. To handle this, introduce a 20-second timeout that is passed to __run(), which in turn calls subproc.kill() to termina... push 14 Jul 2025 05:11PM UTC drakenclimber github
47.22
16179295341 test ftests: Fix false positive in 013 testcase Fix the false positive in the testcase number 013, the return value should be by default TEST_FAILED, instead of TEST_PASSED. The flow of the testcase is designed to set the return value to TEST_PASSED o... push 09 Jul 2025 08:18PM UTC drakenclimber github
56.1
16179147813 test ftests: Fix false positive in 013 testcase Fix the false positive in the testcase number 013, the return value should be by default TEST_FAILED, instead of TEST_PASSED. The flow of the testcase is designed to set the return value to TEST_PASSED o... push 09 Jul 2025 08:10PM UTC drakenclimber github
56.25
16179036446 test ftests/090: Enable cpuset for root.cgroup.subtree_controller Some version of systemd doesn't enable 'cpuset' controller for the cgroups below default hierarchy root. Enable it, before stressing '-R' option on cgroup v2. -------------------------... push 09 Jul 2025 08:04PM UTC drakenclimber github
56.25
See All Builds (1017)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc