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

drakenclimber / libcgroup / 16602408173
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: test
DEFAULT BRANCH: main
Ran 29 Jul 2025 04:56PM 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

29 Jul 2025 04:53PM UTC coverage: 56.157% (-0.02%) from 56.177%
16602408173

push

github

drakenclimber
cgclassify: Fix clang warnings

Fix the following clang warnings by shrinking the scan size from 4096 to
4095 to allow room for the null terminating character.

	cgclassify.c:334:47: warning: 'sscanf' may overflow; destination buffer
	in argument 4 has size 4096, but the corresponding specifier may require
	size 4097 [-Wfortify-source]
	  334 |                         ret = sscanf(buffer, "%d::%4096s\n",
	&idx, cgrp_name);
	      |
	^
	cgclassify.c:336:63: warning: 'sscanf' may overflow; destination buffer
	in argument 5 has size 4096, but the corresponding specifier may require
	size 4097 [-Wfortify-source]
	  336 |                         ret = sscanf(buffer,
	"%d:%[^:]:%4096s\n", &idx, ctrl_name, cgrp_name);
	      |
	^
	cgclassify.c:497:40: warning: 'sscanf' may overflow; destination buffer
	in argument 3 has size 4096, but the corresponding specifier may require
	size 4097 [-Wfortify-source]
	  497 |                 ret = sscanf(buffer, "%*s %4096s\n", cgrp_path);
	      |                                                      ^

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>

1 of 3 new or added lines in 1 file covered. (33.33%)

465 existing lines in 2 files now uncovered.

5591 of 9956 relevant lines covered (56.16%)

407.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
44.2
0.0% src/tools/cgclassify.c

Uncovered Existing Lines

Lines Coverage ∆ File
3
46.69
-0.47% src/daemon/cgrulesengd.c
462
61.73
0.02% src/api.c
Jobs
ID Job ID Ran Files Coverage
1 Container Tests - 16602408173.1 29 Jul 2025 04:57PM UTC 28
35.51
GitHub Action Run
2 Unit Tests - 16602408173.2 29 Jul 2025 04:58PM UTC 36
11.07
GitHub Action Run
3 No systemd Functional Tests - 16602408173.3 29 Jul 2025 04:56PM UTC 28
46.64
GitHub Action Run
4 Sudo Tests - 16602408173.4 29 Jul 2025 04:56PM UTC 36
31.65
GitHub Action Run
5 No Container Tests - 16602408173.5 29 Jul 2025 04:56PM UTC 36
37.29
GitHub Action Run
Source Files on build 16602408173
  • Tree
  • List 38
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 493bfaa0 on github
  • Prev Build on clang (#16600983238)
  • Next Build on clang (#16602483361)
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

© 2025 Coveralls, Inc