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

drakenclimber / libcgroup / 20820106962
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: alert-autofix-11
DEFAULT BRANCH: main
Ran 08 Jan 2026 02:26PM 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.03%) from 56.187%
20820106962

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%)

428 existing lines in 2 files now uncovered.

5608 of 9975 relevant lines covered (56.22%)

566.33 hits per line

New Missed Lines in Diff

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

Uncovered Existing Lines

Lines Coverage ∆ File
4
58.33
0.44% src/lex.l
424
61.74
0.01% src/api.c
Jobs
ID Job ID Ran Files Coverage
1 Unit Tests - 20820106962.1 08 Jan 2026 02:26PM UTC 37
11.11
GitHub Action Run
2 No systemd Functional Tests - 20820106962.2 08 Jan 2026 02:27PM UTC 28
46.61
GitHub Action Run
3 Sudo Tests - 20820106962.3 08 Jan 2026 02:27PM UTC 37
31.67
GitHub Action Run
4 Container Tests - 20820106962.4 08 Jan 2026 02:27PM UTC 28
35.46
GitHub Action Run
5 No Container Tests - 20820106962.5 08 Jan 2026 02:27PM UTC 37
37.32
GitHub Action Run
Source Files on build 20820106962
  • Tree
  • List 39
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8a40bf6f on github
  • Prev Build on test (#16730702375)
  • Next Build on test (#20820343591)
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