Bug #19588
closed
Issues with C API image metadata retrieval functions
Added by Mykola Golub about 7 years ago.
Updated almost 7 years ago.
Description
A couple of issues detected when testing rbd_metadata_list API function:
- the provided parameter `vals_len` is not properly checked;
- the output buffers are expected to be zero pre-filled.
- Subject changed from rbd_metadata_list API function does not work properly to Issues with C API image metadata retrieval functions
Also, there is an issue with rbd_metadata_get function: on success it does not set update val_len param (which might be ok), but it also does not copy the final '\0' character to the value buffer. As a result the caller can't tell the value length until it pre-fills the buffer with zeros.
- Backport set to kraken,jewel
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #19611: kraken: Issues with C API image metadata retrieval functions added
- Copied to Backport #19612: jewel: Issues with C API image metadata retrieval functions added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF