Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
asfimport opened this issue May 28, 2018 · 3 comments
Closed

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

asfimport opened this issue May 28, 2018 · 3 comments

Comments

@asfimport
Copy link

asfimport commented May 28, 2018

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.

@asfimport
Copy link
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

@asfimport
Copy link
Author

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

@asfimport
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants