You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2018/11/08 00:03:00 UTC

[jira] [Created] (IMPALA-7833) Audit and fix other string builtins for long string handling

Tim Armstrong created IMPALA-7833:
-------------------------------------

             Summary: Audit and fix other string builtins for long string handling
                 Key: IMPALA-7833
                 URL: https://issues.apache.org/jira/browse/IMPALA-7833
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 3.0, Impala 2.11.0, Impala 3.1.0
            Reporter: Tim Armstrong


Following on from IMPALA-7822, there are some other string builtins that seem to follow the same pattern of having a string size overflow an int passed into the StringVal constructor. I think in some cases we get lucky and it works out, but others it seems possible to crash given the right input values. 

Here are some examples of cases where we can hit such bugs:
{noformat}
select lpad('foo', 17179869184 , ' ');
select rpad('foo', 17179869184 , ' ');
select space(17179869184 );
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org