diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2017-08-10 22:21:23 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2017-08-10 22:21:23 +0300 |
| commit | d80e485863d76a869c6efd6985452d3ff68f3f17 (patch) | |
| tree | 42db4945700557b7919fcdcef53631b17e69e407 /src/os/unix/ngx_files.c | |
| parent | 9b9f5466e5e6c9e5f4dc1b0d4d3a34646520b0e5 (diff) | |
| download | nginx-d80e485863d76a869c6efd6985452d3ff68f3f17.tar.gz nginx-d80e485863d76a869c6efd6985452d3ff68f3f17.tar.bz2 | |
Range filter: changed type for total length to off_t.
Total length of a response with multiple ranges can be larger than a size_t
variable can hold, so type changed to off_t. Previously, an incorrect
Content-Length was returned when requesting more than 4G of ranges from
a large enough file on a 32-bit system.
An additional size_t variable introduced to calculate size of the boundary
header buffer, as off_t is not needed here and will require type casts on
win32.
Reported by Shuxin Yang,
http://mailman.nginx.org/pipermail/nginx/2017-July/054384.html.
Diffstat (limited to 'src/os/unix/ngx_files.c')
0 files changed, 0 insertions, 0 deletions
