]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
* modules/http/http_filters.c (parse_chunk_size): Reduce by four the
authorJoe Orton <jorton@apache.org>
Mon, 17 Feb 2020 08:20:52 +0000 (08:20 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 17 Feb 2020 08:20:52 +0000 (08:20 +0000)
commitb853e4925d903ec58cb887616ba6a5d17df99f8a
treea64387acefafb927f2137af8617b4d35ff825e67
parentcf458d83eb68b210c52cdd40afc992f7ee2139aa
* modules/http/http_filters.c (parse_chunk_size): Reduce by four the
  limit to the number of bits that can be handled in a chunk size, to
  avoid undefined behaviour bitshifting a signed integer left.  Max
  chunk size on 32-bit arch is now 32MiB.  Avoids UBSan error in:

http_filters.c:227:46: runtime error: left shift of 768614336404564650 by 4 places cannot be represented in type 'long int'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874102 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_filters.c