Peter Rozsa has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23839


Change subject: IMPALA-14666: Fix invalid input handling for aes_decrypt
......................................................................

IMPALA-14666: Fix invalid input handling for aes_decrypt

aes_decrypt with AES_128_GCM and AES_256_GCM modes subtracts the AES
block size from the length of the input that causes negative numbers
if the input text is shorter than the block size. This change adds a
check for GCM mode and reports an error if the input is shorter than
the block size.

Tests:
  - new test cases added to encryption_exprs_errors.test

Change-Id: I8e23c2682b851082479a52d754b74f35fe0734c7
---
M be/src/exprs/string-functions.cc
M 
testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_errors.test
2 files changed, 16 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/39/23839/1
--
To view, visit http://gerrit.cloudera.org:8080/23839
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e23c2682b851082479a52d754b74f35fe0734c7
Gerrit-Change-Number: 23839
Gerrit-PatchSet: 1
Gerrit-Owner: Peter Rozsa <[email protected]>

Reply via email to