- Stephen Collyer and Tor Arntsen helped identify a flaw in the range code

which output the range using a signed variable where it should rather use
  unsigned.
This commit is contained in:
Daniel Stenberg
2008-06-30 13:07:05 +00:00
parent 69aac49f79
commit eb60ba23f5
4 changed files with 16 additions and 5 deletions

View File

@@ -3118,7 +3118,7 @@ static CURLcode setup_range(struct SessionHandle *data)
free(s->range);
if(s->resume_from)
s->range = aprintf("%" FORMAT_OFF_T "-", s->resume_from);
s->range = aprintf("%" FORMAT_OFF_TU "-", s->resume_from);
else
s->range = strdup(data->set.str[STRING_SET_RANGE]);