Project

General

Profile

Bug #7543

rgw: off-by-one bug in rgw_trim_whitespace()

Added by Xiangyu Lv about 10 years ago. Updated about 10 years ago.

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

0%

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

Description

There is an off-by-one bug in rgw_trim_whitespace(). It results in trimming off all characters with input like " t".

Associated revisions

Revision 195d53a7 (diff)
Added by Ray Lv about 10 years ago

rgw: off-by-one in rgw_trim_whitespace()

Fixes: #7543
Backport: dumpling

Reviewed-by: Yehuda Sadeh <>
Signed-off-by: Ray Lv <>

Revision 6700dd06 (diff)
Added by Ray Lv about 10 years ago

rgw: off-by-one in rgw_trim_whitespace()

Fixes: #7543
Backport: dumpling

Reviewed-by: Yehuda Sadeh <>
Signed-off-by: Ray Lv <>
(cherry picked from commit 195d53a7fc695ed954c85022fef6d2a18f68fe20)

History

#1 Updated by Xiangyu Lv about 10 years ago

I've sent a pull request to fix this bug at https://github.com/ceph/ceph/pull/1321
Please help to review it.

#2 Updated by Yehuda Sadeh about 10 years ago

  • Status changed from New to Pending Backport
  • Backport set to dumpling

#3 Updated by Sage Weil about 10 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF