lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFo99gZwnvtResqq12LJk-g0AVrZDwyAjOehvWhEnHkUx6o42g@mail.gmail.com>
Date:	Mon, 19 May 2014 23:18:36 +0200
From:	Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To:	David Miller <davem@...emloft.net>
Cc:	Karsten Keil <isdn@...ux-pingi.de>, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] isdn: hisax: l3dss1.c: Fix for possible null pointer dereference

Hi

Ahh, yes. That's niecer..
I am sending a new patch. If it is as you intended, I do the same with
the l3ni1.c file.


Best regards
Rickard Strandqvist


2014-05-19 3:12 GMT+02:00 David Miller <davem@...emloft.net>:
> From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
> Date: Sat, 17 May 2014 19:18:21 +0200
>
>> There is otherwise a risk of a possible null pointer dereference.
>>
>> Was largely found by using a static code analysis program called cppcheck.
>>
>> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
>  ...
>
>> @@ -2208,8 +2208,12 @@ static int l3dss1_cmd_global(struct PStack *st, isdn_ctrl *ic)
>>                               { free_invoke_id(st, id);
>>                                       return (-2);
>>                               }
>> -                     pc->prot.dss1.ll_id = ic->parm.dss1_io.ll_id; /* remember id */
>> -                     pc->prot.dss1.proc = ic->parm.dss1_io.proc; /* and procedure */
>> +
>> +                     if (pc)
>> +                     {
>> +                             pc->prot.dss1.ll_id = ic->parm.dss1_io.ll_id; /* remember id */
>> +                             pc->prot.dss1.proc = ic->parm.dss1_io.proc; /* and procedure */
>> +                     }
>
> I think rather the intention was to put these pc-> assignments in the
> timeout > 0 code block.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ