Re: [PATCH 0/1] coredump: Fix null pointer dereference when kernel.core_pattern is "|"

From: Paul Wise
Date: Fri Mar 13 2020 - 20:28:22 EST


On Tue, 2020-03-10 at 11:34 +1300, Matthew Ruffell wrote:

> Can I please get some feedback on this patch? Would be good to clear
> up the null pointer dereference.

I had a thought about it, instead of using strlen, what about checking
that the first item in the array is NUL or not? In the normal case this
should be faster than strlen.

--
bye,
pabs

https://bonedaddy.net/pabs3/

Attachment: signature.asc
Description: This is a digitally signed message part