Uploaded image for project: 'Bug Archive'
  1. Bug Archive
  2. BUGARCHIVE-6581

Indirection can cause crash when syntax of field name is incorrect

    XMLWordPrintable

    Details

    • Type: Maintenance
    • Status: Fixed (View Workflow)
    • Resolution: Unresolved
    • Labels:
      None
    • Old bug number:
      30596
    • environment:
      Hide

      +Uniface:
      * Version 8.x
      * Version 9.x

      +Operating System:
      * OS independent

      Database:
      * DBMS independent

      Show
      +Uniface: * Version 8.x * Version 9.x +Operating System: * OS independent Database: * DBMS independent
    • Patch version:
      X502

      Description

      Summary:
      Uniface: When an indirection of (e.g.) @Field is used to access the content of
      a field then this can cause a crash in case the syntax of the field name in
      Field is incorrect.

      Symptoms:
      When an indirection of (e.g.) @Field is used to access the content of a field
      then this can cause a crash in case the syntax of the field name in Field is
      incorrect.

      Consider the following scenario:

      • Field = "%%$fieldname%%%.%%$entname%%%"

      > $fieldname = "", since there's no current field; $entname = "ENT1"
      > Value of Field is ".ENT1"

      • Field2 = @Field

      > A crash will occur

        Attachments