]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: remove unused and broken 'content-len' logic
authorVictor Julien <victor@inliniac.net>
Fri, 23 Jan 2015 12:06:44 +0000 (13:06 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 26 Feb 2015 07:53:09 +0000 (08:53 +0100)
commite90714afd68fad6ed78233182b243437456b2d1e
tree5e2dd4aa18f9b7bdaef3d2de33ecb5753c9c71ef
parent647985d20d7da4fb1a27c74e3c6767d54826bc8a
http: remove unused and broken 'content-len' logic

The HTTP tracking code would parse the content lenght and store it
in the TX user data. It didn't take the possibility or errors into
account though, leading to a possible negative int being cases to
unsigned int. Luckily, the result was unused.

This patch simply removes the offending code.

Reported-by: The Yahoo pentest team
src/app-layer-htp.c
src/app-layer-htp.h