Bug 9611

Summary: httpd handle_incoming_and_exit() eating a lot of RAM
Product: Busybox Reporter: Mikhail Zaytsev <flashed>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Script to reproduce

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!