Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756414AbYADHyf (ORCPT ); Fri, 4 Jan 2008 02:54:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752772AbYADHyZ (ORCPT ); Fri, 4 Jan 2008 02:54:25 -0500 Received: from relay2.sgi.com ([192.48.171.30]:47014 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752248AbYADHyZ (ORCPT ); Fri, 4 Jan 2008 02:54:25 -0500 Date: Fri, 4 Jan 2008 01:54:21 -0600 From: Paul Jackson To: Denis Cheng Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, emdow@us.ibm.com Subject: Re: [PATCH] PROC_FS: get and set the smp affinity of tasks by read-write /proc//smp_affinity Message-Id: <20080104015421.cc7a89f7.pj@sgi.com> In-Reply-To: <1199430221-28417-1-git-send-email-crquan@gmail.com> References: <1199430221-28417-1-git-send-email-crquan@gmail.com> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.12.0; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 519 Lines: 14 Denis wrote: > + length += sprintf(page + length, "\n"); Could that overrun the 'page' buffer by one byte? -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.940.382.4214 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/