Re: Comparison of different-width ints in ixg(4)

2022-10-09 Thread Mario Campos
On Sat, Oct 8, 2022 at 1:00 PM Taylor R Campbell wrote: > > > Date: Sat, 8 Oct 2022 10:58:58 -0500 > > From: Mario Campos > > > > I ran a SAST tool, CodeQL, against trunk and found a couple of > > instances (below) where the 16-bit integer `i` is compared to the

Comparison of different-width ints in ixg(4)

2022-10-08 Thread Mario Campos
Hello. I ran a SAST tool, CodeQL, against trunk and found a couple of instances (below) where the 16-bit integer `i` is compared to the 32-bit integer `max_rx_queues` or `max_tx_queues` in ixg(4). If `max_rx_queues` (or `max_tx_queues`) is sufficiently large, it could lead to an infinite loop.