This is an automated email from the ASF dual-hosted git repository.
joaoreis pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-gocql-driver.git
The following commit(s) were added to refs/heads/trunk by this push:
new 54799536 Handle silently dropped framer error
54799536 is described below
commit 54799536f2d05c91fe70933700d8bcc2ca5ab507
Author: Lars Lehtonen <[email protected]>
AuthorDate: Mon Feb 23 00:13:26 2026 -0800
Handle silently dropped framer error
Patch by Lars Lehtonen; reviewed by João Reis for CASSGO-108
---
CHANGELOG.md | 1 +
frame.go | 3 +++
2 files changed, 4 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cfd0714a..5398820c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0
- Prevent setting a compression flag in a frame header when native proto v5 is
being used (CASSGO-98)
- Use protocol downgrading approach during protocol negotiation (CASSGO-97)
- Prevent panic iin compileMetadata() when final func is not defined for an
aggregate (CASSGO-105)
+- Framer drops error silently (CASSGO-108)
## [2.0.0]
diff --git a/frame.go b/frame.go
index 0316032e..c9790b0a 100644
--- a/frame.go
+++ b/frame.go
@@ -2229,6 +2229,9 @@ func (f *framer) readBytesMap() (map[string][]byte,
error) {
func (f *framer) readStringMultiMap() (map[string][]string, error) {
size, err := f.readShort()
+ if err != nil {
+ return nil, err
+ }
m := make(map[string][]string, size)
var k string
for i := 0; i < int(size); i++ {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]