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

libcgroup / libcgroup / 15683938180
56%

Build:
DEFAULT BRANCH: main
Ran 16 Jun 2025 02:43PM UTC
Jobs 5
Files 38
Run time 6min
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

16 Jun 2025 02:39PM UTC coverage: 56.227%. Remained the same
15683938180

push

github

drakenclimber
api.c: prevent array out-of-bounds access in cgroup_parse_rules_file

In the function src/api.c/cgroup_parse_rules_file, the condition of loop:

for (i = 0; lst->tail->controllers[i]; i++)
        cgroup_dbg(" %s", lst->tail->controllers[i]);

allows accessing lst->tail->controllers[MAX_MNT_ELEMENTS] if
lst->tail->controllers is full and lacks a terminating NULL.

Add explicit bounds checking (i < MAX_MNT_ELEMENTS) while maintaining
the NULL check. This ensures that there will never be reading past the
array boundaries regardless of its content.

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 1 new or added line in 1 file covered. (100.0%)

5598 of 9956 relevant lines covered (56.23%)

580.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 No Container Tests - 15683938180.1 16 Jun 2025 02:43PM UTC 36
44.34
GitHub Action Run
2 No systemd Functional Tests - 15683938180.2 16 Jun 2025 02:43PM UTC 28
46.6
GitHub Action Run
3 Unit Tests - 15683938180.3 16 Jun 2025 02:43PM UTC 36
11.1
GitHub Action Run
4 Sudo Tests - 15683938180.4 16 Jun 2025 02:43PM UTC 36
31.65
GitHub Action Run
5 Container Tests - 15683938180.5 16 Jun 2025 02:44PM UTC 28
35.45
GitHub Action Run
Source Files on build 15683938180
  • Tree
  • List 38
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ce5749a5 on github
  • Prev Build on main (#15683273673)
  • Next Build on main (#16179246505)
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