Skip to content

Covscan-induced review of ei_insert()

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4segtree: Drop needless insertion in ei_insert()src/segtree.c+2 -231 reply
2/4segtree: Drop dead code in ei_insert()src/segtree.c+0 -201 reply
3/4segtree: Simplify overlap case in ei_insert()src/segtree.c+4 -71 reply
4/4segtree: Refactor ei_insert()src/segtree.c+28 -354 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPablo Neira Ayuso
1/4A-b
2/4A-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [nft PATCH 0/4] Covscan-induced review of ei_insert()

False covscan report led to closer investigation ei_insert() which identified dead code and some opportunities for improvement due to the fact that the only caller sorts the new intervals prior to calling said function.

Note that if we at some point want to support merging of new and old set elements, we will probably have to revert these patches since we can't be sure anymore that there aren't any items with bigger values in the set already.

Phil Sutter (4):
segtree: Drop needless insertion in ei_insert()
segtree: Drop dead code in ei_insert()
segtree: Simplify overlap case in ei_insert()
segtree: Refactor ei_insert()

 src/segtree.c | 101 +++++++++++++-------------------------------------
 1 file changed, 25 insertions(+), 76 deletions(-)
Signature · 1 line
2.24.1