diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2025-07-31 15:01:47 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-08-11 12:12:28 -0700 |
| commit | cf4af0b2f30f27b6273fa9b9f295dbdaf9cdb7bb (patch) | |
| tree | e0539a0a4ae201f85a94dfa2702df325d945c8b3 /src/database/sql/driver/driver.go | |
| parent | b096ddb9ea84efa28eafd7850b8f8a8b3e76e49f (diff) | |
| download | go-cf4af0b2f30f27b6273fa9b9f295dbdaf9cdb7bb.tar.xz | |
encoding/json/v2: fix UnmarshalDecode regression with EOF
When EOF is encountered within jsontext.Decoder stream without
starting to parse any token, UnmarshalDecode should report EOF,
rather than converting it into ErrUnexpectedEOF.
This fixes a regression introduced by https://go.dev/cl/689919.
This change only affects code compiled under goexperiment.jsonv2.
Fixes #74835
Change-Id: I7e8e57ab11b462c422c538503ed8c6b91ead53bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/692175
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Jake Bailey <jacob.b.bailey@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Diffstat (limited to 'src/database/sql/driver/driver.go')
0 files changed, 0 insertions, 0 deletions
