Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8713

MathFunctions::Unhex() can overflow stack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 3.2.0
    • Impala 3.3.0
    • Backend

    Description

      It allocates a stack buffer large enough to hold the output string. It shouldn't be hard to see what could go wrong. E.g.

      select unhex(repeat('z', 1024 * 1024 * 1024))
      

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: