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

aremmell / libsir / 336
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: 20251203/johnsonjh/null
DEFAULT BRANCH: master
Ran 01 Sep 2023 07:23PM UTC
Jobs 1
Files 21
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

01 Sep 2023 07:16PM UTC coverage: 94.837% (-0.03%) from 94.869%
336

Pull #256

gitlab-ci

johnsonjh
Test in an attempt to resolve GCC Analyzer warning

```
cc -MMD -std=c11 -fanalyzer -Wno-analyzer-malloc-leak -fanalyzer-verbosity=3 -Werror -Wall -Wextra -Wpedantic -Iinclude -fPIC -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -c -o build/obj/src/sirerrors.o src/sirerrors.c
In file included from src/sirerrors.c:27:
src/sirerrors.c: In function '_sir_geterror':
src/sirerrors.c:54:37: error: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 223 and 233 [-Werror=format-truncation=]
   54 | #define _SIR_E_PLATFORM_ERRORFORMAT "Platform error code %d: %s"
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/sir/helpers.h:353:31: note: in definition of macro '_sir_snprintf_trunc'
  353 |       (void)snprintf(dst, _n, __VA_ARGS__); \
      |                               ^~~~~~~~~~~
src/sirerrors.c:211:61: note: in expansion of macro '_SIR_E_PLATFORM_ERRORFORMAT'
  211 |                 _sir_snprintf_trunc(heap_msg, SIR_MAXERROR, _SIR_E_PLATFORM_ERRORFORMAT, sir_te.os_error,
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sirerrors.c:54:62: note: format string is defined here
   54 | #define _SIR_E_PLATFORM_ERRORFORMAT "Platform error code %d: %s"
      |                                                              ^~
In file included from /usr/include/stdio.h:964,
                 from include/sir/platform.h:300,
                 from include/sir/types.h:29,
                 from include/sir/errors.h:29,
                 from src/sirerrors.c:26:
In function 'snprintf',
    inlined from '_sir_geterror' at src/sirerrors.c:211:17:
/usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 24 and 289 bytes into a destination of size 256
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                 ... (continued)
Pull Request #256: Inline some validation functions

23 of 23 new or added lines in 2 files covered. (100.0%)

3031 of 3196 relevant lines covered (94.84%)

605170.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 336.1 01 Sep 2023 07:23PM UTC 0
94.84
Source Files on build 336
Detailed source file information is not available for this build.
  • Back to Repo
  • GitLab CI Build #336
  • Pull Request #256
  • PR Base - master (#333)
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