This is an automated email from the ASF dual-hosted git repository.
felixybw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new d788a6f92b [GLUTEN-8534][VL] Fix allowing loops to iterate beyond end
of array (#8535)
d788a6f92b is described below
commit d788a6f92be90af2f7942ed3badc4f67cc61546b
Author: jkhaliqi <[email protected]>
AuthorDate: Fri Jan 17 14:29:58 2025 -0800
[GLUTEN-8534][VL] Fix allowing loops to iterate beyond end of array (#8535)
security volation check
---
cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc
b/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc
index 28a7279a2b..ef85a56726 100644
--- a/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc
+++ b/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc
@@ -108,6 +108,7 @@ VectorPtr createFlatVector<TypeKind::HUGEINT>(
uint8_t bytesValue[length];
memcpy(bytesValue, memoryAddress + offsets[pos] + wordoffset, length);
uint8_t bytesValue2[16]{};
+ GLUTEN_CHECK(length <= 16, "array out of bounds exception");
for (int k = length - 1; k >= 0; k--) {
bytesValue2[length - 1 - k] = bytesValue[k];
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]