Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
On Fri, Jun 13, 2014 at 12:01 AM, Greg KH wrote: > On Thu, Jun 12, 2014 at 11:49:35PM +0200, Thomas H.P. Andersen wrote: >> On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: >> > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: >> >> From: Thomas Hindoe Paaboel Andersen >> >>

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 11:49:35PM +0200, Thomas H.P. Andersen wrote: > On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: > > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: > >> From: Thomas Hindoe Paaboel Andersen > >> > >> Beef up the assert to protect against passing null

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: >> From: Thomas Hindoe Paaboel Andersen >> >> Beef up the assert to protect against passing null to strlen. >> >> Found with scan-build. >> --- >> src/cryptsetup/cryptsetup.c

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: > From: Thomas Hindoe Paaboel Andersen > > Beef up the assert to protect against passing null to strlen. > > Found with scan-build. > --- > src/cryptsetup/cryptsetup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
From: Thomas Hindoe Paaboel Andersen Beef up the assert to protect against passing null to strlen. Found with scan-build. --- src/cryptsetup/cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 812b32f..