Commit d11e440
committed
* server/util.c (ap_escape_shell_cmd, ap_escape_path_segment,
ap_os_escape_path, ap_escape_urlencoded): Add integer overflow
checks before apr_palloc buffer size calculations. Compute
strlen into a local variable and assert that the multiplied
size does not exceed APR_SIZE_MAX.
Submitted by: Koda Reef <[email protected]>
Github: closes #615
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933099 13f79535-47bb-0310-9956-ffa450edef681 parent 5c27d74 commit d11e440
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| 1819 | + | |
1819 | 1820 | | |
1820 | | - | |
| 1821 | + | |
| 1822 | + | |
1821 | 1823 | | |
1822 | 1824 | | |
1823 | 1825 | | |
| |||
2073 | 2075 | | |
2074 | 2076 | | |
2075 | 2077 | | |
2076 | | - | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2077 | 2081 | | |
2078 | 2082 | | |
2079 | 2083 | | |
| |||
2082 | 2086 | | |
2083 | 2087 | | |
2084 | 2088 | | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
2088 | 2093 | | |
2089 | 2094 | | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2090 | 2100 | | |
2091 | 2101 | | |
2092 | 2102 | | |
| |||
2133 | 2143 | | |
2134 | 2144 | | |
2135 | 2145 | | |
2136 | | - | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
2137 | 2149 | | |
2138 | 2150 | | |
2139 | 2151 | | |
| |||
0 commit comments