]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: be pedantic with message sizes and offsets
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 29 Jun 2022 03:11:26 +0000 (11:11 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 1 Jul 2022 06:52:36 +0000 (14:52 +0800)
commit275cb31e6042253bf077830799f703c96c6a64c6
tree1b9dff891d5dfd0990db936a604620984430d0c5
parent7155c489295674f861eb9e10b917d4005233eeb0
mi: be pedantic with message sizes and offsets

Check that we have enough data for a base header, and that the lengths
are properly aligned, for both request and response messages.

For the raw admin API, ensure we have correct data lengths and offsets.

Add some tests to suit, using the raw admin API

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
src/nvme/mi.c
test/mi.c