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

drakenclimber / libcgroup / 20820343591
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: alert-autofix-11
DEFAULT BRANCH: main
Ran 08 Jan 2026 02:34PM UTC
Jobs 5
Files 38
Run time 1min
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

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

New Missed Lines in Diff

Lines Coverage ∆ File
3
61.72
-0.02% src/api.c

Uncovered Existing Lines

Lines Coverage ∆ File
3
57.41
-0.81% src/tools/cgxset.c
496
61.72
-0.02% src/api.c
Jobs
ID Job ID Ran Files Coverage
1 No systemd Functional Tests - 20820343591.1 08 Jan 2026 02:35PM UTC 27
46.41
GitHub Action Run
2 Sudo Tests - 20820343591.2 08 Jan 2026 02:35PM UTC 36
31.75
GitHub Action Run
3 No Container Tests - 20820343591.3 08 Jan 2026 02:35PM UTC 36
37.25
GitHub Action Run
4 Unit Tests - 20820343591.4 08 Jan 2026 02:34PM UTC 36
11.14
GitHub Action Run
5 Container Tests - 20820343591.5 08 Jan 2026 02:35PM UTC 27
35.26
GitHub Action Run
Source Files on build 20820343591
  • Tree
  • List 38
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 14a1e734 on github
  • Prev Build on test (#20820106962)
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