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

drakenclimber / libcgroup / 16602483361
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: test
DEFAULT BRANCH: main
Ran 29 Jul 2025 05:00PM 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:57PM UTC coverage: 56.157%. Remained the same
16602483361

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

5591 of 9956 relevant lines covered (56.16%)

409.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
44.2
0.0% src/tools/cgclassify.c
Jobs
ID Job ID Ran Files Coverage
1 Container Tests - 16602483361.1 29 Jul 2025 05:00PM UTC 28
35.51
GitHub Action Run
2 Unit Tests - 16602483361.2 29 Jul 2025 05:00PM UTC 36
11.07
GitHub Action Run
3 No Container Tests - 16602483361.3 29 Jul 2025 05:00PM UTC 36
37.29
GitHub Action Run
4 Sudo Tests - 16602483361.4 29 Jul 2025 05:01PM UTC 36
31.65
GitHub Action Run
5 No systemd Functional Tests - 16602483361.5 29 Jul 2025 05:00PM UTC 28
46.64
GitHub Action Run
Source Files on build 16602483361
  • Tree
  • List 38
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 504e8dff on github
  • Prev Build on clang (#16602408173)
  • Next Build on clang (#16602536994)
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