Skip to content

chore: correct log record batch checksum bounds#172

Merged
luoyuxia merged 1 commit into
apache:mainfrom
zhaohaidao:fix/checksum1
Jan 17, 2026
Merged

chore: correct log record batch checksum bounds#172
luoyuxia merged 1 commit into
apache:mainfrom
zhaohaidao:fix/checksum1

Conversation

@zhaohaidao
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #171

Brief change log

Tests

API and Format

Documentation

@zhaohaidao zhaohaidao changed the title fix: correct log record batch checksum bounds chore: correct log record batch checksum bounds Jan 17, 2026
Copy link
Copy Markdown
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

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

@zhaohaidao Thanks for the fix. LGTM

pub fn checksum(&self) -> u32 {
let offset = CRC_OFFSET;
LittleEndian::read_u32(&self.data[offset..offset + CRC_OFFSET])
LittleEndian::read_u32(&self.data[offset..offset + CRC_LENGTH])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🙈

@luoyuxia luoyuxia merged commit 9c41e2c into apache:main Jan 17, 2026
13 checks passed
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.

Fix incorrect checksum/schema-id slice bounds in Rust LogRecordBatch

2 participants