Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.4k
Commit963cfa7
authored
fix(terminal): invalid pointer comparison#18453
At the moment of comparison, the pointer save_curwin can be invalid (assuggested by the comment) because it has been free'd. Worst, the newcurwin could have been re-allocated to that same pointer, altering theexecution flow unpredictably.While there are many other potential similar cases to fix in thecodebase, the presented scenario is not hypothetical and does happen inpractice (while spawning new windows from fzf for instance).There are numerous other instances of curwin comparisons in thecodebase, and they may need further investigation.closes#169411 parent3a91ada commit963cfa7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
0 commit comments
Comments
(0)