Bug class
Bug class
Posted May 23, 2013 10:41 UTC (Thu) by error27 (guest, #8346)In reply to: Bug class by cesarb
Parent article: An unexpected perf feature
Smatch theoretically can find buffer underflows.
In this case it missed for several reasons. 1) This wasn't getting marked as untrusted user data. 2) The cross function tracking wasn't working. 3) The underflow check was ignoring if we capped the upper value. *eyeroll*
I haven't pushed all the Smatch changes yet, but it's sort of working now to the point where it would have found this bug. It did find a couple problems in ATM network drivers as well.
