ASF Bugzilla – Attachment 37131 Details for
Bug 54962
Apache will set incorrect Content-Length header and may serve partial files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
small program to provoke the error
test2.c (text/x-csrc), 839 bytes, created by
Ståle Kristoffersen
on 2020-03-27 17:12:37 UTC
(
hide
)
Description:
small program to provoke the error
Filename:
MIME Type:
Creator:
Ståle Kristoffersen
Created:
2020-03-27 17:12:37 UTC
Size:
839 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> > >static char lorem[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laboree\n"; > >#define TEMPFILE "/usr/local/apache2/htdocs/test.tmp" >#define FILENAME "/usr/local/apache2/htdocs/test.txt" > >int main() { > while(1) { > int i; > int iterations = (rand() % 100); > > FILE *out = fopen(TEMPFILE, "w"); > if (out == NULL) { > printf("Error!\n"); > return 1; > } > for (i = 0; i < iterations; i ++) { > fprintf(out, "%s", lorem); > } > fprintf(out, "End of file!\n"); > fclose(out); > rename(TEMPFILE, FILENAME); > } > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54962
: 37131 |
37135