Skip to content

[C++] Investigate spurious memset() calls #19036

Closed

Description

@asfimport

builder.cc has TODO statements of the form:

  // TODO(emkornfield) valgrind complains without this
  memset(data_->mutable_data(), 0, static_cast<size_t>(nbytes));

Ideally we shouldn't have to zero-initialize a data buffer before writing to it.

Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou / @pitrou

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-2641. Please see the migration documentation for further details.

Activity

  1. asfimport commented on May 28, 2018

    @asfimport
    Author

    Robert Nishihara / @robertnishihara:
    Most likely unrelated, but we memset some unused padding bytes to 0 in the c++ implementation to make the serialization deterministic. e.g., #405

  2. asfimport commented on May 31, 2018

    @asfimport
    Author

    Wes McKinney / @wesm:
    Issue resolved by pull request 2091
    #2091

  3. asfimport commented on May 31, 2018

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    As a side note, though, the fact that our IPC code can write out uninitialized memory /might/ have adverse security consequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions