8 Dec
2010
8 Dec
'10
12:56 p.m.
On 2010-12-08 13:12, Clemens Ladisch wrote:
David Henningsson wrote:
Possible buffer overrun if the number of "card" and "device" are absurdly high, especially on 64-bit platforms.
The size of "int" is 32 bits even on 64-bit platforms.
Seems you're right, then I learned something new today :-)
Although this might be compiler dependent, and some exotic platform might decide otherwise in the future?
As far as I can see, there is no bug.
Even for 32-bit platforms, you would still overrun the buffer if you set card = device = −2147483647.
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic