zsh-workers
 help / color / mirror / code / Atom feed
* Fix use after free warning in compmatch.c
@ 2022-10-04 17:53 Wesley Schwengle
  2022-10-04 17:53 ` [PATCH] Silence use-after-free " Wesley Schwengle
  0 siblings, 1 reply; 3+ messages in thread
From: Wesley Schwengle @ 2022-10-04 17:53 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-17  4:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 17:53 Fix use after free warning in compmatch.c Wesley Schwengle
2022-10-04 17:53 ` [PATCH] Silence use-after-free " Wesley Schwengle
2022-10-17  4:18   ` Jun T

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).