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

Eyevinn / mp4ff / 39481012708
85%

Build:
DEFAULT BRANCH: master
Ran 20 Oct 2026 07:09PM UTC
Jobs 1
Files 221
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

20 Oct 2026 07:09PM UTC coverage: 82.848% (-0.02%) from 82.864%
39481012708

push

github

tobbee
fix: handle sizes beyond the int range on 32-bit architectures

Where int has 32 bits, several 64-bit or 32-bit unsigned sizes were
converted to int and wrapped:

- File.CopySampleData with a work space converted the byte count of the
  selected samples in a chunk to int. A chunk of 2 GiB or more, as in a
  flat progressive file, made it slice with a negative length and panic,
  and 4 GiB + k copied only k bytes. The count is now kept as int64.
- BoxHeader.payloadLen wrapped for box sizes from 2^31. DecodeMdatSR,
  which allows an mdat larger than the slice, could then read a payload
  of size modulo 2^32 and go on decoding inside the mdat. payloadLen now
  returns math.MaxInt for a size that does not fit, so the read fails as
  on 64-bit.
- StscBox.expectedSize multiplied the entry count by 12 in int, so an
  entry count of 0x15555556 matched a box size of 24 and make panicked.
  It is now computed in uint64, as for stco.
- BoxSeekReader.Seek truncated a forward seek of 2^31 bytes or more and
  returned success at the wrong position. It now returns an error.
- ivf.Reader.ReadFrame panicked in make for a frame size from 2^31. It
  now returns an error.
- The IAMF parser skipped int(leb128) bytes, which wrapped to a negative
  or small number. The length is now clamped to math.MaxInt, so the skip
  fails beyond the end of the data.
- mp4ff-crop converted its -d duration to int. It is now passed as uint.

CopySampleData has no test, since it needs a chunk of more than 2 GiB.
The new tests for the others fail on linux/386 before this change; the
BoxSeekReader and ivf tests are skipped where int has 64 bits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DKkiVzSco2WgbZic3newjB

13 of 19 new or added lines in 8 files covered. (68.42%)

26 existing lines in 3 files now uncovered.

24083 of 29069 relevant lines covered (82.85%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
75.82
0.0% iamf/parser.go
2
73.85
-1.96% ivf/ivf.go
2
86.18
-0.74% mp4/boxseekreader.go

Coverage Regressions

Lines Coverage ∆ File
14
92.39
0.17% bits/ebspreader.go
10
69.23
-0.47% bits/writer.go
2
97.56
-0.06% bits/fixedslicewriter.go
Jobs
ID Job ID Ran Files Coverage
1 39481012708.1 20 Oct 2026 07:09PM UTC 221
82.85
GitHub Action Run
Source Files on build 39481012708
  • Tree
  • List 221
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a0ac397b on github
  • Prev Build on master (#39478793108)
  • Next Build on master (#39482335476)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc