From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Belmonte Subject: Re: [PATCH] Toshiba ACPI Extras 0.16 Date: Sat, 26 Jul 2003 17:32:40 -0400 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <3F22F378.8090807@prairienet.org> References: <20030726132501.C766314829@o-o.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20030726132501.C766314829-RAHWjsxJnJUdnm+yROfE0A@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: acpi-devel-pyega4qmqnRoyOMFzWx49A@public.gmane.org List-Id: linux-acpi@vger.kernel.org Lyle Seaman wrote: > But strlen() is dangerous when you point it at something that you > can't swear is null-terminated. It almost always works because, > somewhere along the line, there's a null byte. BUT, it *is* walking > off the end of your string and poking about in memory, and you never > know what that might do. It's never acceptable to read undefined memory, and in this case it triggers real symptoms such as causing the driver or unrelated drivers to fail. -- http:// if l .o / ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01