Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/24635 )
Change subject: IMPALA-15221: Harden VARIANT decoding against corrupt input ...................................................................... Patch Set 6: (3 comments) Thanks for the comments! http://gerrit.cloudera.org:8080/#/c/24635/5/be/src/runtime/variant-value.h File be/src/runtime/variant-value.h: http://gerrit.cloudera.org:8080/#/c/24635/5/be/src/runtime/variant-value.h@172 PS5, Line 172: [[nodiscard]] bool GetBoolean(bool* out) const; : [[nodiscard]] bool GetInt8(int8_t* out) const; : [[nodiscard]] bool GetInt16(int16_t* out) const; : [[nodiscard]] bool GetInt32(int32_t* out) const; : [[nodiscard]] bool GetInt64(int64_t* out) const; : [[nodiscard]] bool GetFloat(float* out) const; : [[nodiscard]] bool GetDouble(double* out) const; : [[nodiscard]] bool GetString(StringValue* out) const; : [[nodiscard]] bool GetBinary(StringValu > These methods should be [[nodiscard]] Done http://gerrit.cloudera.org:8080/#/c/24635/5/be/src/runtime/variant-value.cc File be/src/runtime/variant-value.cc: http://gerrit.cloudera.org:8080/#/c/24635/5/be/src/runtime/variant-value.cc@448 PS5, Line 448: pidjson::Writer<rapidjs > nit: it might fit in types.h, as Type.java defines this limit as well Done http://gerrit.cloudera.org:8080/#/c/24635/5/be/src/runtime/variant-value.cc@474 PS5, Line 474: pe::SHORT_STRING: { > A small helper that constructs the error message could help with the error Done -- To view, visit http://gerrit.cloudera.org:8080/24635 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I3a22bb16cd05854a9afb56ebd27806ac52670bca Gerrit-Change-Number: 24635 Gerrit-PatchSet: 6 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Wed, 29 Jul 2026 16:26:26 +0000 Gerrit-HasComments: Yes
