diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2022-03-19 01:20:57 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2022-03-30 08:07:39 +0200 |
| commit | 3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd (patch) | |
| tree | b4719cea1999f39d6bab12772c0e4e7c8b518e92 | |
| parent | 49915: Efficient dedup for unsorted completions (diff) | |
| download | zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar.gz zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar.bz2 zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar.lz zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar.xz zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.tar.zst zsh-3bf95b91f0cd378c1a4e9c611a51cb9fe0e2ffcd.zip | |
49870: Fix NULL reference in match code more
This reverts "49658: Fix NULL reference in match code." and adds a check
inside the block, as well as a failsafe check at the end.
The above commit (49658) causes a crash due to ll being calculated as
0 which leads to rr being an invalid pointer. Only adding a check for
when ll is 0 just leads to bck-i-search pattern not working at all (the
final hunk). Restoring the condition and adding an explicit NULL check
for replstr seems to make matters work as intended.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | Src/glob.c | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -13,6 +13,8 @@ * 49915: Src/Zle/comp.h, Src/Zle/compcore.c: Efficient dedup for unsorted completions + * 49870: Src/glob.c: Fix NULL reference in match code more + |
