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

icerpc / icerpc-csharp / 32981951433
86%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 02:45PM UTC
Jobs 1
Files 257
Run time 4min
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

26 Aug 2026 02:42PM UTC coverage: 87.913% (-0.08%) from 87.996%
32981951433

push

github

web-flow
Throw InvalidDataException when class slice decoding overruns (#4874)

Addresses finding L-09 of #4832.

When decoding an Ice class or exception, two code paths in
`IceDecoder.Class.cs` skip to a previously recorded position by
advancing the reader by a computed delta: `EndSlice` jumps over the
indirection table, and `DecodeInstance` returns to the resume position
after decoding deferred indirection tables. With malformed data — slice
fields that consume more bytes than the declared slice size, or an
indirection table that overruns its slice — the delta goes negative and
`SequenceReader.Advance` throws `ArgumentOutOfRangeException` instead of
the `InvalidDataException` the decoder throws for all other malformed
input. Both sites were verified to throw `ArgumentOutOfRangeException`
before the fix; they now check the delta and throw
`InvalidDataException`.

The similar advance in `SkipSlice` cannot go negative — the skip
consumes exactly the declared slice size, the same value used to locate
the indirection table — so it gets a `Debug.Assert` instead of a guard.

## What's Changed entry

None — improves the error thrown on malformed input.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

9 of 13 new or added lines in 1 file covered. (69.23%)

16 existing lines in 3 files now uncovered.

12386 of 14089 relevant lines covered (87.91%)

3008.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
89.88
-0.95% src/IceRpc/Ice/Codec/IceDecoder.Class.cs

Coverage Regressions

Lines Coverage ∆ File
7
90.08
-0.63% src/IceRpc/Transports/Slic/Internal/SlicConnection.cs
6
74.63
-4.48% src/IceRpc/Transports/Slic/Internal/SlicPipeReader.cs
3
89.5
-0.31% src/IceRpc/Internal/IceProtocolConnection.cs
Jobs
ID Job ID Ran Files Coverage
1 32981951433.1 26 Aug 2026 02:45PM UTC 3841
15.6
GitHub Action Run
Source Files on build 32981951433
  • Tree
  • List 257
  • Changed 206
  • Source Changed 1
  • Coverage Changed 206
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32981951433
  • e43ef1cf on github
  • Prev Build on main (#32975896834)
  • Next Build on main (#32999877679)
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