Commit ad7f6b8
Bugfix for aviod reading outside of the buffer. (cocos2d#19098)
Bugfix for aviod reading outside of the buffer. If new will allocate memory at the end of the heap - reading of MAX_LOG_LENGTH from memory would cause access violation reading location.1 parent 23847ff commit ad7f6b8
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments