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

moonbitlang / core / 6264
91%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2026 06:51AM UTC
Jobs 1
Files 452
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

21 Aug 2026 06:47AM UTC coverage: 90.791% (-0.004%) from 90.795%
6264

push

github

bobzhang
fix(base64): keep the vector fast paths free of wrapping bounds

The block loops tested `index + 16 <= end`, which wraps to a true
comparison for a view sitting at the very end of a large backing buffer,
and `encode_v128` sized its UTF-16 buffer as `char_count * 2` without
checking that the product fits in an `Int`. Neither is reachable through
any realistic caller -- both need an allocation close to two gigabytes --
but the vector loads and stores they guard are not bounds checked, so a
wrapped index reads and writes outside the buffer rather than failing.

Both loops now bound themselves by subtraction, and the encoder hands an
input whose buffer size would wrap to the scalar encoder, which builds
the string without ever materializing that buffer.

Found by Codex CLI while reviewing the equivalent code in #4122, which
fixes the same two defects in `encoding/hex`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

1 of 2 new or added lines in 2 files covered. (50.0%)

16592 of 18275 relevant lines covered (90.79%)

306064.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.11
-1.89% encoding/base64/encode_v128.mbt
Jobs
ID Job ID Ran Files Coverage
1 6264.1 21 Aug 2026 06:51AM UTC 453
90.81
GitHub Action Run
Source Files on build 6264
  • Tree
  • List 452
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9ccffb33 on github
  • Prev Build on main (#6262)
  • Next Build on main (#6266)
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