Tim Armstrong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11811 )
Change subject: IMPALA-5031: Zero-length arrays are undefined behavior ...................................................................... Patch Set 1: (1 comment) http://gerrit.cloudera.org:8080/#/c/11811/1/be/src/runtime/row-batch-serialize-test.cc File be/src/runtime/row-batch-serialize-test.cc: http://gerrit.cloudera.org:8080/#/c/11811/1/be/src/runtime/row-batch-serialize-test.cc@242 PS1, Line 242: int len = (rand() % MAX_STRING_LEN) + 1; I think we want to generate empty strings as random values. Why not just make buf a non-VLA of MAX_STRING_LEN. -- To view, visit http://gerrit.cloudera.org:8080/11811 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I93f7d0b0506e4b6a2ff3303477d887a428431f96 Gerrit-Change-Number: 11811 Gerrit-PatchSet: 1 Gerrit-Owner: Jim Apple <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jinchul Kim <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-Comment-Date: Fri, 16 Nov 2018 01:11:26 +0000 Gerrit-HasComments: Yes
