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:
a4a449b
)
http: buf_fifo_get_segs minor fix
99/42299/2
author
Matus Fabian
<
[email protected]
>
Sat, 1 Feb 2025 16:46:14 +0000
(17:46 +0100)
committer
Florin Coras
<
[email protected]
>
Mon, 3 Feb 2025 19:27:09 +0000
(19:27 +0000)
validate segs vector to (_n_segs - 1)
Type: fix
Change-Id: I721cc438e4c9610760a1f40b6355834bbd389b20
Signed-off-by: Matus Fabian <
[email protected]
>
src/plugins/http/http_buffer.c
patch
|
blob
|
history
diff --git
a/src/plugins/http/http_buffer.c
b/src/plugins/http/http_buffer.c
index
bc1b8c0
..
909aa53
100644
(file)
--- a/
src/plugins/http/http_buffer.c
+++ b/
src/plugins/http/http_buffer.c
@@
-67,7
+67,7
@@
buf_fifo_get_segs (http_buffer_t *hb, u32 max_len, u32 *n_segs)
max_len = clib_min (bf->len - bf->offset, (u64) max_len);
- vec_validate (bf->segs, _n_segs);
+ vec_validate (bf->segs, _n_segs
- 1
);
len = svm_fifo_segments (bf->src, 0, bf->segs, &_n_segs, max_len);
if (len < 0)