[openib-general] integer overflow

Michael S. Tsirkin mst at mellanox.co.il
Sat Feb 10 15:32:29 PST 2007


Roland, the following code in ipoib:

	while ((int) priv->tx_tail - (int) priv->tx_head < 0) {

seems to rely on integer overflow which seems to be
undefined behaviour.

Should we care?

-- 
MST




More information about the general mailing list