Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1670

Static code analysis tool reports misuse of function leaving object to cleanup stack inside TRAP call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 1.2.x
    • None
    • Symbian
    • bee60d1cfe5e288a5eaa50338959330799ca7d28 e0f4039d83e906e0429107ebd56be10a3c9b25f8

    Description

      The tool output:
      Problem: Use of LC function in TRAPs
      You cannot trap something that leaves something on the cleanup stack because it will panic.

      bluetoothlinkmanagerdevicediscoverer.cpp(234) BluetoothLinkManagerDeviceDiscoverer::currentDeviceDataToQBluetoothDeviceInfo TRAP(err,deviceNameBuffer = HBufC::NewLC(bufferlength));
      bluetoothlinkmanagerdevicediscoverer.cpp(296) BluetoothLinkManagerDeviceDiscoverer::currentDeviceDataToQBluetoothDeviceInfo TRAP(err,HBufC8::NewLC(bufferlength));

      Attachments

        Issue Links

          Activity

            People

              stanleyj Andrew Stanley-Jones (closed Nokia identity) (Inactive)
              kalle_lehtonen Kalle Lehtonen (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: