Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18263

Crash in helper function if parsing huge reals or large EBCDIC strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 5.6.8
    • Fix Version/s: 6.4.2
    • Component/s: eclrtl
    • Labels:
      None

      Description

      Several eclrtl conversion function use alloca() to allocate temporary space on the stack.
      If the fields they are converting are very large, this can exceed the stack size.
      In that scenario, alloca() still returns a ptr, but a segmentation fault follows when it's used.

      Switch to using heap memory for large values.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: