Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9677

Shallow copy of deep object in ti_ndk_config_ip_init()

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • Medium
    • Resolution: Fixed
    • Network Development Kit
    • NDK-290
    • 2.25.00
    • 3.50.00

    Description

      In the generated function ti_ndk_config_ip_init(), an array of DHCP options is constructed on the stack. This array is referenced by a CI_SERVICE_DHCP object, also constructed on the stack. CfgAddEntry() is called to copy the DHCP object into the config database, but this is a shallow copy. Later, when this object is fetched from the database, the option array pointer is looking at random stack data. This causes invalid options to be added to the DHCP Discover and Select packets.

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: