Project

General

Profile

Bug #19588

Issues with C API image metadata retrieval functions

Added by Mykola Golub about 2 months ago. Updated about 2 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/12/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
kraken,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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.


Related issues

Copied to Backport #19611: kraken: Issues with C API image metadata retrieval functions New
Copied to Backport #19612: jewel: Issues with C API image metadata retrieval functions Resolved

History

#1 Updated by Mykola Golub about 2 months ago

  • 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.

#2 Updated by Mykola Golub about 2 months ago

  • Backport set to kraken,jewel

#3 Updated by Mykola Golub about 2 months ago

  • Status changed from In Progress to Need Review

#4 Updated by Mykola Golub about 2 months ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #19611: kraken: Issues with C API image metadata retrieval functions added

#6 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #19612: jewel: Issues with C API image metadata retrieval functions added

Also available in: Atom PDF