Home
last modified time | relevance | path

Searched hist:db7b8324 (Results 1 – 2 of 2) sorted by relevance

/openbmc/libpldm/tests/
H A Dmsgbuf.cppdb7b8324 Wed Apr 12 08:35:21 CDT 2023 Andrew Jeffery <andrew@aj.id.au> msgbuf: Add pldm_msgbuf_consumed()

pldm_msgbuf_consumed() only returns PLDM_SUCCESS if a message buffer has
been exactly exhausted - all bytes read and no overflow has occurred.

The decode_* functions have a mix of behaviour, some lenient like the
behaviour provided by pldm_msgbuf_validate() and others strict like
pldm_msgbuf_consumed().

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If058ed3748dcc7cb366f4c31344c9bbfba1c5939
/openbmc/libpldm/src/
H A Dmsgbuf.hdb7b8324 Wed Apr 12 08:35:21 CDT 2023 Andrew Jeffery <andrew@aj.id.au> msgbuf: Add pldm_msgbuf_consumed()

pldm_msgbuf_consumed() only returns PLDM_SUCCESS if a message buffer has
been exactly exhausted - all bytes read and no overflow has occurred.

The decode_* functions have a mix of behaviour, some lenient like the
behaviour provided by pldm_msgbuf_validate() and others strict like
pldm_msgbuf_consumed().

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If058ed3748dcc7cb366f4c31344c9bbfba1c5939