Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3c285b5
)
vlib: fix coverity 277203
24/37024/2
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Fri, 26 Aug 2022 13:13:20 +0000
(13:13 +0000)
committer
Damjan Marion
<dmarion@0xa5.net>
Tue, 30 Aug 2022 14:10:52 +0000
(14:10 +0000)
Fix integer overflow.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I72de6f88be064f188204d0f6d3167a3a8d7de58d
src/vlib/dma/cli.c
patch
|
blob
|
history
diff --git
a/src/vlib/dma/cli.c
b/src/vlib/dma/cli.c
index
0ca4a9b
..
1db59c8
100644
(file)
--- a/
src/vlib/dma/cli.c
+++ b/
src/vlib/dma/cli.c
@@
-109,7
+109,7
@@
test_dma_command_fn (vlib_main_t *vm, unformat_input_t *input,
u32 port_allocator_seed;
- fill_random_data (from, cfg.max_transfers * rsz);
+ fill_random_data (from,
(uword)
cfg.max_transfers * rsz);
b = vlib_dma_batch_new (vm, config_index);
vlib_dma_batch_set_cookie (vm, b, 0x12345678);