Project

General

Profile

Actions

Bug #12252

closed

buffer: critical bufferlist::zero bug

Added by Haomai Wang almost 9 years ago. Updated over 8 years ago.

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

0%

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

Description

{
bufferlist bl;
bufferptr ptr1(4);
bufferptr ptr2(4);
memset(ptr1.c_str(), 'a', 4);
memset(ptr2.c_str(), 'b', 4);
bl.append(ptr1);
bl.append(ptr2);
bl.zero((unsigned)2, (unsigned)4);
EXPECT_EQ(0, ::memcmp("aa\0\0\0\0bb", bl.c_str(), 8));
}


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #12490: buffer: critical bufferlist::zero bugResolvedHaomai Wang07/09/2015Actions
Copied to Ceph - Backport #12491: buffer: critical bufferlist::zero bugResolvedLoïc Dachary07/09/2015Actions
Actions #2

Updated by Greg Farnum almost 9 years ago

  • Status changed from Fix Under Review to Pending Backport

This should get backported, right Haomai?

Actions #3

Updated by Josh Durgin almost 9 years ago

  • Backport set to hammer, firefly
Actions #4

Updated by Nathan Cutler over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF