Skip to content

{184332905} fix sockbplog crash via negative-length bplog packet#5997

Open
mohitkhullar wants to merge 1 commit into
bloomberg:mainfrom
mohitkhullar:fix-sockbplog-negative-length-crash
Open

{184332905} fix sockbplog crash via negative-length bplog packet#5997
mohitkhullar wants to merge 1 commit into
bloomberg:mainfrom
mohitkhullar:fix-sockbplog-negative-length-crash

Conversation

@mohitkhullar
Copy link
Copy Markdown
Contributor

Validate that buffer length fields are non-negative before using them in memory operations in the sockbplog handler. A crafted packet with length -1 (0xFFFFFFFF) could skip allocation and pass a negative size to cdb2buf_fread, causing a segfault.

Validate that buffer length fields are non-negative before using them
in memory operations in the sockbplog handler. A crafted packet with
length -1 (0xFFFFFFFF) could skip allocation and pass a negative size
to cdb2buf_fread, causing a segfault.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
remotecreate
remotecreate_twopc_generated
reco-ddlk-sql [timeout] **quarantined**

@chands10
Copy link
Copy Markdown
Contributor

chands10 commented Jun 1, 2026

See #5966 and #5976

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.

3 participants