Jim Apple has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10948 )

Change subject: IMPALA-5031: Fix undefined behavior: memset NULL
......................................................................


Patch Set 3:

> (1 comment)

Another wrinkle here is that this doesn't actually provide a memory-safe 
memset. It prevents trying to write to nullptr when n > 0 but p = nullptr, but 
that's incidental, and that would segfault anyway, right?

What it's really preventing is the undefined behavior, not the dangers we 
normally associate with memory unsafety like double frees, writing beyond 
bounds, slicing, and so on.


--
To view, visit http://gerrit.cloudera.org:8080/10948
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I18fa02dc887a42a94c6f81e4923d17568f2184f2
Gerrit-Change-Number: 10948
Gerrit-PatchSet: 3
Gerrit-Owner: Jim Apple <jbapple-imp...@apache.org>
Gerrit-Reviewer: Jim Apple <jbapple-imp...@apache.org>
Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: Zoltan Borok-Nagy <borokna...@cloudera.com>
Gerrit-Comment-Date: Tue, 17 Jul 2018 23:57:13 +0000
Gerrit-HasComments: No

Reply via email to