[
https://issues.apache.org/jira/browse/ARROW-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16496730#comment-16496730
]
Antoine Pitrou commented on ARROW-2641:
---------------------------------------
As a side note, though, the fact that our IPC code can write out uninitialized
memory /might/ have adverse security consequences.
> [C++] Investigate spurious memset() calls
> -----------------------------------------
>
> Key: ARROW-2641
> URL: https://issues.apache.org/jira/browse/ARROW-2641
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Affects Versions: 0.9.0
> Reporter: Antoine Pitrou
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 4h
> Remaining Estimate: 0h
>
> {{builder.cc}} has TODO statements of the form:
> {code:c++}
> // TODO(emkornfield) valgrind complains without this
> memset(data_->mutable_data(), 0, static_cast<size_t>(nbytes));
> {code}
> Ideally we shouldn't have to zero-initialize a data buffer before writing to
> it.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)