Commit e80ce56
committed
[Lex][Clang] Add checking to HeaderMapImpl::getString to make it more robust
Static analysis identified the Len - 1 expression in HeaderMapImpl::getString
as problematic if Len is zero. After filing this issue:
#130185
Indeed we should be checking MaxLen and verify it is not zero as well.
Fixes: #1301851 parent 6dbe82f commit e80ce56
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments