Project

General

Profile

Actions

Bug #7250

closed

osd: string xattr comparison can have undefined behavior

Added by Josh Durgin about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

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

Description

It's using the non-nul-terminated string.data() method with strcmp(), resulting in undefined behavior in c++98.

Actions #1

Updated by Josh Durgin about 10 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Samuel Just about 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF