[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <513813F5.5040806@asianux.com>
Date: Thu, 07 Mar 2013 12:13:41 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Jiri Slaby <jslaby@...e.cz>
CC: Jiri Kosina <jkosina@...e.cz>, isdn@...ux-pingi.de,
Greg KH <gregkh@...uxfoundation.org>, alan@...ux.intel.com,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] drivers/isdn: checkng length to be sure not memory overflow
于 2013年03月05日 17:34, Jiri Slaby 写道:
>> what you said is: this patch need improving, is it correct ?
>> > if it is correct.
>> > I still prefer to throw the rest contents (but need improving, too)
>> > for maintaining, we need fix bug, but not need add new features
>> > so what we should do:
>> > a) fix the bug (should not memory overflow)
>> > b) keep the original buffer length no touch
>> > it is not sizeof(cmd.parm.cmsg.para) - 2)
>> > it should be sizeof(cmd.param) - sizeof(cmd.param.cmsg) + sizeof(cmd.param.cmsg.para) - 2
>> > c) need complete the relative document to export the limitation.
>> >
>> > is it ok ?
> Yes, it is -- just fix the bug with minimal effort.
ok, I will send patch v2 for it.
:-)
--
Chen Gang
Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists