Bug #14129
librbd: snap_exists API overflow!
Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
See Internal.cc
bool snap_exists(ImageCtx *ictx, const char *snap_name)
{
ldout(ictx->cct, 20) << "snap_exists " << ictx << " " << snap_name << dendl;
int r = ictx->state->refresh_if_required();
if (r < 0)
return r;// overflowed.
Associated revisions
librbd: fix snap_exists API overflow issue
The original one may overflow and thus not be safe.
Fixes: #14129
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
History
#1 Updated by xie xingguo over 8 years ago
#2 Updated by Nathan Cutler over 8 years ago
- Project changed from Ceph to rbd
#3 Updated by Nathan Cutler over 8 years ago
- Status changed from New to Fix Under Review
#4 Updated by xie xingguo over 8 years ago
#5 Updated by Nathan Cutler over 8 years ago
- Status changed from Fix Under Review to Resolved