Skip to content

fs/partition: bound TXTABLE partition names#19327

Merged
jerpelea merged 1 commit into
apache:masterfrom
Old-Ding:codex/txtable-bound-partition-name
Jul 6, 2026
Merged

fs/partition: bound TXTABLE partition names#19327
jerpelea merged 1 commit into
apache:masterfrom
Old-Ding:codex/txtable-bound-partition-name

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • limit TXTABLE partition name parsing to NAME_MAX
  • reject partition entries that do not parse all required fields
  • avoid writing past struct partition_s.name for malformed text partition tables

Testing

  • git diff --check
  • git show --stat --check --format=fuller HEAD

Limit the parsed TXTABLE name field to NAME_MAX and reject entries that do not provide all three required fields. This avoids writing past struct partition_s.name when a text partition table contains an overlong name.

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
@Old-Ding Old-Ding requested a review from jerpelea as a code owner July 5, 2026 22:56
@github-actions github-actions Bot added Area: File System File System issues Size: XS The size of the change in this PR is very small labels Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@jerpelea jerpelea merged commit 4b1a1bd into apache:master Jul 6, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: File System File System issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants