Project

General

Profile

Actions

Bug #4170

closed

buffer::ptr::cmp reports a == ab

Added by Loïc Dachary about 11 years ago. Updated about 11 years ago.

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

100%

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

Description

When running

  bufferptr a("A", 1);
  bufferptr ab("AB", 2);
  a.cmp(ab);

it returns zero because the first character is equal and cmp returns prematurely


Related issues 1 (0 open1 closed)

Related to Ceph - Tasks #4066: unit tests for src/include/buffer.hResolvedLoïc Dachary02/09/201302/16/2013

Actions
Actions #2

Updated by Loïc Dachary about 11 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF