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

libcgroup / libcgroup / 20820294181 / 2
56%
main: 56%

Build:
DEFAULT BRANCH: main
Ran 08 Jan 2026 02:34PM UTC
Files 28
Run time 2s
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: 46.615% (-0.02%) from 46.638%
20820294181.2

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>

4413 of 9467 relevant lines covered (46.61%)

245.4 hits per line

Source Files on job No systemd Functional Tests - 20820294181.2
  • Tree
  • List 28
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20820294181
  • 8a40bf6f on github
  • Prev Job for on main (#16963823306.3)
  • Next Job for on main (#20820653988.5)
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