From: Wesley Schwengle <wesleys@opperschaap.net>
To: zsh-workers@zsh.org
Subject: Fix use after free warning in compmatch.c
Date: Tue, 4 Oct 2022 13:53:33 -0400 [thread overview]
Message-ID: <20221004175333.1250799-1-wesleys@opperschaap.net> (raw)
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
next reply other threads:[~2022-10-04 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 17:53 Wesley Schwengle [this message]
2022-10-04 17:53 ` [PATCH] Silence use-after-free " Wesley Schwengle
2022-10-17 4:18 ` Jun T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221004175333.1250799-1-wesleys@opperschaap.net \
--to=wesleys@opperschaap.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).