]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Commit fix for CVE-2010-0010, an integer overflow on platforms where
authorColm MacCarthaigh <colm@apache.org>
Thu, 7 Jan 2010 10:28:00 +0000 (10:28 +0000)
committerColm MacCarthaigh <colm@apache.org>
Thu, 7 Jan 2010 10:28:00 +0000 (10:28 +0000)
commit55706ab085a9b2fb574737a32882fd8a6eabece9
tree8a1b3885f45c85c17506f9cb780de315e5f1ba7e
parent38c3ef6c442a9e3adfca1925b0313811979b026d
Commit fix for CVE-2010-0010, an integer overflow on platforms where
sizeof(int) < sizeof(long) due to inappapriate casting;

    * Change "MIN( (int) a, (int) b)" to "(int) MIN(a, b)". As 'a' is the buffer
      size, it will be smaller than any long which overflows an int.

    * More generally - change ap_bread and ap_bwrite to defend against a negative
      length argument in general. Return -1 if one is passed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@896842 13f79535-47bb-0310-9956-ffa450edef68
src/CHANGES
src/main/buff.c
src/modules/proxy/proxy_util.c