mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
Merge pull request #3553 from ceph/wip-10701
rgw: use strict_strtoll() for content length Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
commit
d3f1d6ea69
@ -1240,7 +1240,7 @@ int RGWREST::preprocess(struct req_state *s, RGWClientIO *cio)
|
|||||||
s->content_length = 0;
|
s->content_length = 0;
|
||||||
} else {
|
} else {
|
||||||
string err;
|
string err;
|
||||||
s->content_length = strict_strtol(s->length, 10, &err);
|
s->content_length = strict_strtoll(s->length, 10, &err);
|
||||||
if (!err.empty()) {
|
if (!err.empty()) {
|
||||||
ldout(s->cct, 10) << "bad content length, aborting" << dendl;
|
ldout(s->cct, 10) << "bad content length, aborting" << dendl;
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user