Github user interma commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1265#discussion_r128675385
--- Diff: depends/libhdfs3/src/client/OutputStreamImpl.cpp ---
@@ -278,7 +316,10 @@ void OutputStreamImpl::append(const char * buf,
int64_t size) {
void OutputStreamImpl::appendInternal(const char * buf, int64_t size) {
int64_t todo = size;
+ if (fileStatus.isFileEncrypted()) {
+ buf = cryptoCodec->encode(buf, size).c_str();
--- End diff --
encode() reture a **temporary** string object, so buf point a uncertain
memory.
MUST fix it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---