Bug 2123423

Summary: code change: avoid use-after-move issues identified by Coverity scan
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Casey Bodley <cbodley>
Component: RGW-MultisiteAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.3CC: akraj, anarnold, ceph-eng-bugs, cephqe-warriors, ivancich, mbenjamin, pasik, vereddy
Target Milestone: ---Keywords: CodeChange
Target Release: 5.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-30.el8cp 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 release, variable access is fixed and the potential fault can no longer occur.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-11 17:41:25 UTC Type: Bug
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: 2126049    

Description Casey Bodley 2022-09-01 16:05:53 UTC
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-09-01 16:06:01 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 J. Eric Ivancich 2022-09-01 16:35:31 UTC
Casey and I each added a commit to address.

Comment 17 errata-xmlrpc 2023-01-11 17:41:25 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 (Moderate: Red Hat Ceph Storage 5.3 security update and Bug Fix), 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/RHSA-2023:0076

Comment 18 Red Hat Bugzilla 2023-09-19 04:25:41 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days