Commit 38670df
Validate data length in decode_value for NULL type
Every other fixed-size decode path (INTEGER, FLOAT, BOOLEAN, etc.)
validates that at least 8 bytes are available before returning a
consumed count of 8. The NULL path was missing this check, which
could cause misleading errors on truncated data — the error would
appear on the next column decode instead of the NULL column.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5230143 commit 38670df
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
0 commit comments