lisp: address the issues raised by coverity 249165 01/37001/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 23 Aug 2022 16:51:12 +0000 (16:51 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 23 Aug 2022 18:25:48 +0000 (18:25 +0000)
commit1a1c59d1a20ce834ee2296e9b12321410bbabac9
tree2219ba783c931ce7a897fe94ff5eb8c018bb383c
parenta6b2d7ed5a5d20ddb1133da4a153e319151e41e9
lisp: address the issues raised by coverity 249165

Add the error checks in parsing, aimed to avoid parser walking past the end of packet in case the data
is garbage.

Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I9541b555a18baf63cb8081bcd7a4c2750f2ed012
src/plugins/lisp/lisp-cp/lisp_msg_serdes.c