Bug #7543
rgw: off-by-one bug in rgw_trim_whitespace()
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
rgw: off-by-one in rgw_trim_whitespace()
Fixes: #7543
Backport: dumpling
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
rgw: off-by-one in rgw_trim_whitespace()
Fixes: #7543
Backport: dumpling
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
(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