Jim Apple has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10948


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

IMPALA-5031: Fix undefined behavior: memset NULL

memset has undefined behavior when its first argument is NULL. The
instance fixed here was found by Clang's undefined behavior
sanitizer.

It was found in the end-to-end tests. The interesting part of the
stack trace is:

exec/data-source-scan-node.cc:152:10: runtime error: null pointer passed as 
argument 1, which is declared to never be null
/usr/include/string.h:62:79: note: nonnull attribute specified here

Change-Id: I18fa02dc887a42a94c6f81e4923d17568f2184f2
---
M be/src/exec/data-source-scan-node.cc
A be/src/util/ubsan.h
2 files changed, 36 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/48/10948/1
--
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: newchange
Gerrit-Change-Id: I18fa02dc887a42a94c6f81e4923d17568f2184f2
Gerrit-Change-Number: 10948
Gerrit-PatchSet: 1
Gerrit-Owner: Jim Apple <[email protected]>

Reply via email to