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

libcgroup / libcgroup / 20820294181
56%

Build:
DEFAULT BRANCH: main
Ran 08 Jan 2026 02:32PM UTC
Jobs 5
Files 39
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:24PM UTC coverage: 56.221% (-0.04%) from 56.259%
20820294181

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>

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

425 existing lines in 1 file now uncovered.

5608 of 9975 relevant lines covered (56.22%)

566.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
61.74
-0.2% src/api.c

Uncovered Existing Lines

Lines Coverage ∆ File
425
61.74
-0.2% src/api.c
Jobs
ID Job ID Ran Files Coverage
1 Container Tests - 20820294181.1 08 Jan 2026 02:33PM UTC 28
35.46
GitHub Action Run
2 No systemd Functional Tests - 20820294181.2 08 Jan 2026 02:34PM UTC 28
46.61
GitHub Action Run
3 No Container Tests - 20820294181.3 08 Jan 2026 02:33PM UTC 37
37.32
GitHub Action Run
4 Sudo Tests - 20820294181.4 08 Jan 2026 02:33PM UTC 37
31.67
GitHub Action Run
5 Unit Tests - 20820294181.5 08 Jan 2026 02:32PM UTC 37
11.11
GitHub Action Run
Source Files on build 20820294181
  • Tree
  • List 39
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8a40bf6f on github
  • Prev Build on main (#16963823306)
  • Next Build on main (#20820653988)
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