Skip to content

Converter: tuple column count is not checked against relation metadata #98

Description

@lukashes

tupleToRowData (converter.zig) indexes rel_info.columns[i] for every tuple column without checking that tuple.columns.len == rel_info.columns.len.

A protocol violation or a decoder bug leads to an out-of-bounds read: a panic under ReleaseSafe (the release Docker build), undefined behavior under ReleaseFast (the load stand build), where it can silently corrupt data sent to Kafka.

Add the length check and return a decode error instead. Same family as #82, different site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmarinatingDeliberately paused to settle before deciding

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions