Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fix use after free warning in compmatch.c
- X-seq: zsh-workers 50738
- From: Wesley Schwengle <wesleys@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Fix use after free warning in compmatch.c
- Date: Tue, 4 Oct 2022 13:53:33 -0400
- Archived-at: <https://zsh.org/workers/50738>
- List-id: <zsh-workers.zsh.org>
While compiling zsh from git on Debian with gcc 12.2.0 I came across the
following warning:
compmatch.c:2081:26: warning: pointer ‘or’ used after ‘realloc’ [-Wuse-after-free]
With the help of #zsh, with phy1729 and Mikachu in particular, it is solved
with the following patch.
If someone has a better solution to fix the warning, than this is merely a
notice of saying I got a warning while running make with the latest and
greatest zsh.
Cheers,
Wesley
Messages sorted by:
Reverse Date,
Date,
Thread,
Author