9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] devproc: Fix a double-free
@ 2023-02-09 20:35 Josiah Frentsos
  2023-02-17  2:35 ` Josiah Frentsos
  0 siblings, 1 reply; 3+ messages in thread
From: Josiah Frentsos @ 2023-02-09 20:35 UTC (permalink / raw)
  To: 9front

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

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

* Re: [9front] devproc: Fix a double-free
  2023-02-09 20:35 [9front] devproc: Fix a double-free Josiah Frentsos
@ 2023-02-17  2:35 ` Josiah Frentsos
  2023-02-17 11:42   ` cinap_lenrek
  0 siblings, 1 reply; 3+ messages in thread
From: Josiah Frentsos @ 2023-02-17  2:35 UTC (permalink / raw)
  To: 9front

Ping.

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

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

* Re: [9front] devproc: Fix a double-free
  2023-02-17  2:35 ` Josiah Frentsos
@ 2023-02-17 11:42   ` cinap_lenrek
  0 siblings, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2023-02-17 11:42 UTC (permalink / raw)
  To: 9front

good catch! 

applied.

thank you very much.

--
cinap

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

end of thread, other threads:[~2023-02-17 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 20:35 [9front] devproc: Fix a double-free Josiah Frentsos
2023-02-17  2:35 ` Josiah Frentsos
2023-02-17 11:42   ` cinap_lenrek

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