This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Commit 8cc2d86
William Douglas
Fix buffer size for inmemory version
When allocating the buffer for a version string, the size should be
one greater than the max string size as the null string is inserted at
the content size index which leads to a buffer overflow.
Signed-off-by: William Douglas <[email protected]>1 parent abea281 commit 8cc2d86
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
| 154 | + | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
0 commit comments