[pbs-devel] [PATCH proxmox-backup 0/3] improve status page decoding

Dominik Csapak d.csapak at proxmox.com
Wed Jul 28 12:05:08 CEST 2021


by better checking the amount of data available vs what we expect,
and by adding some tests (valid and non-valid data)

triggered by a report in the forum:
https://forum.proxmox.com/threads/decode-element-status-failed-failed-to-fill-whole-buffer.93041/

note: 2/3 tests added would fail without the first two patches

Dominik Csapak (3):
  tape: changer: remove unnecesary inquiry parameter
  tape: changer: handle libraries that sends wrong amount of data
  tape: changer: add tests for decode_element_status_page

 src/tape/changer/sg_pt_changer.rs | 162 ++++++++++++++++++++++++++++--
 1 file changed, 153 insertions(+), 9 deletions(-)

-- 
2.30.2






More information about the pbs-devel mailing list