Project

General

Profile

Actions

Bug #57347

closed

RGWEnv::get() is using nullptr as a default value to the default returned value

Added by Yuval Lifshitz over 1 year ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

when the returned value is being dereferenced, this may cause a crash or undefined behavior (e.g. when passed to "cout").
we should either return an empty string as default instead or check if the returned value is not null.
coverity CIDs: 1510310, 1510928, 1511097, 1511555, 1511760, 1511951, 1512003, 1512138, 1512398

Actions #1

Updated by Mohamed Awnallah about 1 year ago

I'm gonna work on this issue

Actions #3

Updated by Yuval Lifshitz about 1 year ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 50330
Actions #4

Updated by Mykola Golub 7 months ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF