ECN-4699 XML GENERATE crashed with zero-length OCCURS DEPENDING ON

Product: ACUCOBOL-GT

Module: Runtime

Machines Affected: All

Known Versions Affected: All with XML GENERATE

DESCRIPTION:

When the data item being used to generate an XML document contained an OCCURS 1 TO k times DEPENDING ON n, and n is 0, then XML GENERATE crashed with a memory access violation (MAV).

When generating an XML document using a data item described by both of the following:

  • OCCURS 1 TO k times DEPENDING ON n
  • The value of n=0

XML GENERATE crashed with a memory access violation (MAV). This has been fixed.