Re: [PATCH 31/31] staging: r8188eu: Fix smatch error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 22, 2013 at 05:37:02PM -0600, Larry Finger wrote:
> Smatch shows the following:
> 
>   CHECK   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1401 OnAssocReq() error: buffer overflow 'pstapriv->sta_aid' 32 <= 32
> 

This is a false positive in Smatch.  Don't do work arounds for buggy
tools.

If you have the cross function database built on the latest version of
Smatch then I think it understands the code correctly and doesn't print
a warning.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux