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

fhunleth / fwup / 1238
0%
master: 86%

Build:
Build:
LAST BUILD BRANCH: fix-mmcblk-detection
DEFAULT BRANCH: master
Ran 19 Sep 2019 10:17PM UTC
Jobs 1
Files 499
Run time 25s
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

pending completion
1238

push

travis-ci

fhunleth
Fix warning from coverity

This fixes:

*** CID 302877:  Error handling issues  (NEGATIVE_RETURNS)
/src/fwup.c: 602 in main()
596                 // This is a regular file, so open it the regular way.
597                 output_fd = open(mmc_device_path, O_RDWR | O_CREAT | O_WIN32_BINARY, 0644);
598
599                 // Get the original file length
600                 // NOTE: this call is not so interesting. The interesting one is for real
601                 //       media, but we need to do it anyway. <= 0 means unknown.
>>>     CID 302877:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "output_fd" is passed to a parameter that cannot be negative.
602                 end_offset = lseek(output_fd, 0, SEEK_END);
603
604                 struct stat st;
605                 if (output_fd >= 0 && (fstat(output_fd, &st) < 0 || (st.st_mode & 0222) == 0)) {
606                     // The file permissions are read-only, but the user was able to
607                     // open it writable. Root can do this. This is almost certainly

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
4 1238.4 (MODE=dynamic) 19 Sep 2019 10:17PM UTC 0
0.0
Travis Job 1238.4
Source Files on build 1238
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1238
  • c69409a3 on github
  • Prev Build on coverity_scan (#1237)
  • Next Build on coverity_scan (#1251)
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