]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
sed: Fix parsing of Discovery0 features
authorMilan Broz <gmazyland@gmail.com>
Thu, 1 Aug 2024 08:41:50 +0000 (10:41 +0200)
committerDaniel Wagner <wagi@monom.org>
Fri, 2 Aug 2024 06:47:25 +0000 (08:47 +0200)
commiteeea85c97c11825c244dd6afcc6292c4f37c34e4
tree66c3e60c49400d036c2ed6c3c554ad53e9e3708f
parent2f091d9bacd5d771d468678ccce2ea7f49beba7a
sed: Fix parsing of Discovery0 features

TCG SED features have variable sizes, so the code needs to use
stored length to move the offset for the next feature.
Otherwise, it checks the code at the wrong offset.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
plugins/sed/sedopal_cmd.c