From 1c25dbafb45caf1b261cfcec15b868a2ba6b5fef Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 30 Jan 2015 10:51:52 -0800 Subject: [PATCH] rgw: use strict_strtoll() for content length instead of strict_strtol(). Backport: giant, firefly Fixes: #10701 Reported-by: Axel Dunkel Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 5907c13d4be..81e6d69586a 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -1240,7 +1240,7 @@ int RGWREST::preprocess(struct req_state *s, RGWClientIO *cio) s->content_length = 0; } else { string err; - s->content_length = strict_strtol(s->length, 10, &err); + s->content_length = strict_strtoll(s->length, 10, &err); if (!err.empty()) { ldout(s->cct, 10) << "bad content length, aborting" << dendl; return -EINVAL;