Bug 9611 - httpd handle_incoming_and_exit() eating a lot of RAM
Summary: httpd handle_incoming_and_exit() eating a lot of RAM
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 23:29 UTC by Mikhail Zaytsev
Modified: 2017-01-26 18:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Script to reproduce (1.99 KB, application/x-shellscript)
2017-01-25 23:29 UTC, Mikhail Zaytsev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zaytsev 2017-01-25 23:29:15 UTC
Created attachment 6866 [details]
Script to reproduce

Version: 1.26

(httpd.c:2263-2370) While header reading.
If send a lot of header lines (for example "Cookie: FFFFFF...\n"), then xstrdup() returns a lot of duplicates memory.
Comment 1 Mikhail Zaytsev 2017-01-25 23:32:59 UTC
Use "cat ddos.txt | netcat <httpd host> 80 &" in script
Comment 2 Denys Vlasenko 2017-01-26 18:37:05 UTC
Fixed in git, thanks!