Skip to content

Fix decoding of long lists (payload >= 56 bytes) - #30

Merged
sc0Vu merged 3 commits into
web3p:masterfrom
sc0Vuai:fix/long-list-decode
Sep 23, 2026
Merged

sc0Vu merged 3 commits into
web3p:masterfrom
sc0Vuai:fix/long-list-decode

Conversation

@sc0Vuai

@sc0Vuai sc0Vuai commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

The 0xf8-0xff branch sliced the list payload with $totalLength instead of $length, reading $llength bytes past the end of the list, and computed the remainder from $length instead of $totalLength. Any long list followed by a sibling item was decoded incorrectly.

Add hand-built encode/decode vectors for long lists with siblings.

sc0Vuai and others added 3 commits September 24, 2026 02:17
The 0xf8-0xff branch sliced the list payload with $totalLength instead
of $length, reading $llength bytes past the end of the list, and
computed the remainder from $length instead of $totalLength. Any long
list followed by a sibling item was decoded incorrectly.

Add hand-built encode/decode vectors for long lists with siblings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- actions/cache v2 -> v4 (v2 is now rejected by GitHub)
- actions/checkout v2 -> v4
- codecov/codecov-action v1 -> v5
- Include the PHP version in the cache key and hash composer.json
  instead of the gitignored composer.lock, so matrix jobs no longer
  share one vendor/ directory across PHP versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.17%. Comparing base (d35f84b) to head (8870788).

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #30      +/-   ##
============================================
+ Coverage     64.23%   74.17%   +9.93%     
  Complexity       55       55              
============================================
  Files             3        3              
  Lines           151      151              
============================================
+ Hits             97      112      +15     
+ Misses           54       39      -15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sc0Vu
sc0Vu merged commit 0f283fd into web3p:master Sep 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants