9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Josiah Frentsos <jfrent@tilde.team>
To: 9front@9front.org
Subject: [9front] devproc: Fix a double-free
Date: Thu, 9 Feb 2023 15:35:47 -0500	[thread overview]
Message-ID: <Y+VZI1i7F7EOed1G@quark.home.arpa> (raw)

diff 89cb83a4266649bad7ec47fa96176766c2467a33 uncommitted
--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -1127,7 +1127,7 @@
 				n = i;
 			memmove(va, p->note[0]->msg, n-1);
 			((char*)va)[n-1] = '\0';
-			free(p->note[0]);
+			freenote(p->note[0]);
 			if(--p->nnote == 0)
 				p->notepending = 0;
 			else

             reply	other threads:[~2023-02-09 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 20:35 Josiah Frentsos [this message]
2023-02-17  2:35 ` Josiah Frentsos
2023-02-17 11:42   ` cinap_lenrek

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=Y+VZI1i7F7EOed1G@quark.home.arpa \
    --to=jfrent@tilde.team \
    --cc=9front@9front.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.
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).