Skip to content

[C++][Parquet] Unchecked multiplication can overflow when writing Parquet #47657

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

In the Parquet column writer, we sometimes multiply values before writing them, for example when converting Arrow seconds timestamps to Parquet milliseconds timestamps (the Parquet format does not support seconds timestamps).

However, we don't check for multiplication overflow, which could result in invalid data being written out.

Component(s)

C++, Parquet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions