-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Krauße wrote: > I was about to code a little web server for study reasons. > So I made a little mistake and sent a negative content > length field to my clients. > Tried to get a jpg file with wget and it dumped: > > [EMAIL PROTECTED]:~$ wget 127.0.0.1:8888/big.jpg > --13:49:41-- http://127.0.0.1:8888/big.jpg > => `big.jpg' > Connecting to 127.0.0.1:8888... connected. > HTTP request sent, awaiting response... 200 OK > Length: -1,682 > > [ <=> ] 0 --.--K/s > > Aborted (core dumped) > > I know my web server shouldn't sent such things, but > I'd like to report it anyway.
Of course; anything that causes Wget to crash, is a bug in Wget. Fortunately, I believe this bug has already been fixed in the current development version, which is expected to release as version 1.11 any day now. Your little test server isn't the only server that has sent negative content lengths to Wget! :\ ...a number of servers have difficulties with lengths greater than (2 ** 31)-1. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHZr2b7M8hyUobTrERAk0cAJ4xcsRyPdEIBKP7oppuu0s3Lxvr4wCff8QX oKAItlWcQxd0DUDOXTcUobk= =nOXQ -----END PGP SIGNATURE-----