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

Invalid numeric conversions in Esdl2Base::output_content

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.14
    • Component/s: ESDL
    • Labels:
      None

      Description

      Esdl2Base::output_content uses atoi to convert text into signed and unsigned integral values. This is invalid for unsigned 32- and 64-bit integers and signed 64-bit integers.

      Given "<EsdlElement max_len="6" name="LexID" type="unsigned"/>" and a roxie response including "<LexID>2580990509</LexID>", the esdl transformer produces "<LexID>18446744071995574829</LexID>".

      Replace atoi with strtoll and strtoull when outputting intergral numbers to the XML output.

        Attachments

          Activity

            People

            • Assignee:
              klemti01 Tim Klemm
              Reporter:
              klemti01 Tim Klemm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: