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

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

      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));

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes