aboutsummaryrefslogtreecommitdiff
path: root/scripts/decodecode
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-03-29 16:11:21 +0200
committerMister Oyster <oysterized@gmail.com>2017-04-25 11:28:19 +0200
commit36ce3fbda96fdc07b67e7ef97d875f96ae68b655 (patch)
tree4884f468a688a54cb68f29a2f01956f7b2d68457 /scripts/decodecode
parentc51317f4c94886c4dd479dc89d36a4c77888f5b6 (diff)
net/packet: fix overflow in check for tp_frame_nr
When calculating rb->frames_per_block * req->tp_block_nr the result can overflow. Add a check that tp_block_size * tp_block_nr <= UINT_MAX. Since frames_per_block <= tp_block_size, the expression would never overflow. Change-Id: I3598423e621275aa1d890b80bcf9018929087d90 Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Acked-by: Eric Dumazet <edumazet@google.com>
Diffstat (limited to 'scripts/decodecode')
0 files changed, 0 insertions, 0 deletions