Commit 9360647
committed
patch 9.2.0131: potential buffer overflow in regdump()
Problem: Potential buffer overflow in regdump()
Solution: Add the size to the compiled regular expression and ensure we
don't read over the limit.
Note: this is not a security issue, because regdump() is typically not
compiled in any version of Vim, so should not affect anybody.
supported by AI claude.
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent 49b8d99 commit 9360647
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2497 | 2497 | | |
2498 | 2498 | | |
2499 | 2499 | | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
2500 | 2503 | | |
2501 | 2504 | | |
2502 | 2505 | | |
| |||
5200 | 5203 | | |
5201 | 5204 | | |
5202 | 5205 | | |
5203 | | - | |
| 5206 | + | |
5204 | 5207 | | |
5205 | 5208 | | |
5206 | 5209 | | |
5207 | | - | |
| 5210 | + | |
5208 | 5211 | | |
5209 | 5212 | | |
5210 | 5213 | | |
| |||
5230 | 5233 | | |
5231 | 5234 | | |
5232 | 5235 | | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
5233 | 5241 | | |
5234 | 5242 | | |
5235 | 5243 | | |
5236 | 5244 | | |
5237 | 5245 | | |
5238 | 5246 | | |
5239 | | - | |
5240 | | - | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
5241 | 5252 | | |
5242 | 5253 | | |
5243 | 5254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
0 commit comments