Commit 78755a9
fix(common): return error instead of panicking on truncated record bytes
Replace `get_uint` with `try_get_uint` when parsing metered size in
`TryFrom<Bytes> for Metered<Record>`, consistent with the rest of the
deserialization code.
Closes #355
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7065d94 commit 78755a9
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
0 commit comments