[Bugme-new] [Bug 13457] New: found overlapping data buffer

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Thu Jun 4 09:05:46 PDT 2009


http://bugzilla.kernel.org/show_bug.cgi?id=13457

           Summary: found overlapping data buffer
           Product: Drivers
           Version: 2.5
    Kernel Version: 2.6.29.3
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: USB
        AssignedTo: greg at kroah.com
        ReportedBy: ettl.martin at gmx.de
        Regression: No


Hello,

i detected an overlapping data buffer at file 
"linux-2.6.29.3/drivers/usb/atm/usbatm.c"
For detection, i used the static code analysis tool cppcheck. It prints the
following message:
[linux-2.6.29.3/drivers/usb/atm/usbatm.c:1393]: (error) Overlapping data buffer
buffer


Take a loop at file usbatm.cat line 1393:

          sprintf(buffer, "%s %2.2x", buffer, data[i]);

Here, var "buffer" is used by iteself, this is dangerous!!!!

Best regards

Ettl Martin

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Bugme-new mailing list