Bug 2155916

Summary: code change: avoid use-after-move issues identified by Coverity scan 6.0
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: J. Eric Ivancich <ivancich>
Component: RGWAssignee: J. Eric Ivancich <ivancich>
Status: CLOSED ERRATA QA Contact: Chaithra <ckulal>
Severity: high Docs Contact: Eliska <ekristov>
Priority: unspecified    
Version: 5.3CC: akraj, cbodley, ceph-eng-bugs, cephqe-warriors, ekristov, kbader, kkeithle, mbenjamin, mkasturi, rmandyam, tchandra, vereddy
Target Milestone: ---Keywords: CodeChange
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.5-45.el9cp Doc Type: Bug Fix
Doc Text:
.Variable access no longer causes undefined program behavior Previously, a coverity scan would identify two cases, where variables could be used after a move, potentially causing an undefined program behavior to occur. With this fix, variable access is fixed and the potential fault can no longer occur.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-20 18:59:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2126050    

Description J. Eric Ivancich 2022-12-22 21:48:17 UTC
This bug was initially created as a copy of Bug #2123423

I am copying this bug because: 



Description of problem:

a coverity scan discovered two cases where variables were used after a move


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2022-12-22 21:48:29 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 20 errata-xmlrpc 2023-03-20 18:59:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1360