[hackers] [PATCH st] Fix null pointer access in strhandle

2021-12-27 Thread suckless
From: Jochen Sprickerhof As the comment above says: "here p = NULL" so strcmp will segfault. This is a regression of 8e31030 and does not seem to be needed. --- st.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/st.c b/st.c index 6783c2b..8d1fbb4 100644 --- a/st.c +++

Re: [hackers] [PATCH st v2] Fix null pointer access in strhandle

2021-12-27 Thread Hiltjo Posthuma
On Mon, Dec 27, 2021 at 11:41:42AM +0100, suckl...@jochen.sprickerhof.de wrote: > From: Jochen Sprickerhof > > According to the spec the argument is optional for 104, so p can be > NULL as can be tested with printf '\x1b]104\x07'. This is a regression > of 8e31030. > --- > st.c | 4 ++-- > 1

[hackers] [PATCH st v2] Fix null pointer access in strhandle

2021-12-27 Thread suckless
From: Jochen Sprickerhof According to the spec the argument is optional for 104, so p can be NULL as can be tested with printf '\x1b]104\x07'. This is a regression of 8e31030. --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/st.c b/st.c index 6783c2b..de2dd0e