Re: [PATCH] tracing: fix potential null pointer dereference on rctr_end

2019-03-27 Thread Steven Rostedt
I just found this in the depths of my inbox (which is now managed by a local Patchwork system, so no more lost patches!) On Thu, 27 Sep 2018 23:47:00 +0100 Colin King wrote: > From: Colin Ian King > > Currently rctr_end may assigned null if strchr() fails leading to > a null pointer

[PATCH] tracing: fix potential null pointer dereference on rctr_end

2018-09-27 Thread Colin King
From: Colin Ian King Currently rctr_end may assigned null if strchr() fails leading to a null pointer dereference in the following check on *(rctr_end + 1). Fix this by also adding a null pointer check before the dereference. Detected by CoverityScan, CID#1473700 ("Dereference null return

[PATCH] tracing: fix potential null pointer dereference on rctr_end

2018-09-27 Thread Colin King
From: Colin Ian King Currently rctr_end may assigned null if strchr() fails leading to a null pointer dereference in the following check on *(rctr_end + 1). Fix this by also adding a null pointer check before the dereference. Detected by CoverityScan, CID#1473700 ("Dereference null return