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:
08ad8eb
)
http: buf_fifo_get_segs minor fix
94/42294/2
author
Matus Fabian
<
[email protected]
>
Sat, 1 Feb 2025 16:46:14 +0000
(17:46 +0100)
committer
Dave Wallace
<
[email protected]
>
Wed, 5 Feb 2025 15:28:32 +0000
(15:28 +0000)
validate segs vector to (_n_segs - 1)
Type: fix
Change-Id: I721cc438e4c9610760a1f40b6355834bbd389b20
Signed-off-by: Matus Fabian <
[email protected]
>
(cherry picked from commit
778de83dcbaccf3757afa9f4e03c496eaea70b2e
)
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)