Skip to content

meta: reject out-of-range attribute fields in changelog replay - #7932

Merged
jiefenghuang merged 1 commit into
mainfrom
fix-changelog-attr-fields
Nov 27, 2026
Merged

jiefenghuang merged 1 commit into
mainfrom
fix-changelog-attr-fields

Conversation

@zxh326

@zxh326 zxh326 commented Nov 27, 2026

Copy link
Copy Markdown
Member

AttrFields parsed every field as int64 and narrowed it without checks, so negative or overflowing uid/gid/mode/flags/nsec/acl/tier values were silently truncated during replay. Parse unsigned fields with the bounded Uint32/Uint16/Uint8 helpers and keep the signed second fields as Int64.

AttrFields parsed every field as int64 and narrowed it without checks, so
negative or overflowing uid/gid/mode/flags/nsec/acl/tier values were
silently truncated during replay. Parse unsigned fields with the bounded
Uint32/Uint16/Uint8 helpers and keep the signed second fields as Int64.
@zxh326
zxh326 requested a review from jiefenghuang as a code owner November 27, 2026 06:31
@jiefenghuang
jiefenghuang merged commit c59155d into main Nov 27, 2026
35 checks passed
@jiefenghuang
jiefenghuang deleted the fix-changelog-attr-fields branch November 27, 2026 07:54
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.

2 participants