From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEUss-0005IK-94 for qemu-devel@nongnu.org; Thu, 03 Jul 2008 15:54:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEUsq-0005Hi-QP for qemu-devel@nongnu.org; Thu, 03 Jul 2008 15:54:25 -0400 Received: from [199.232.76.173] (port=55870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEUsq-0005HP-Ic for qemu-devel@nongnu.org; Thu, 03 Jul 2008 15:54:24 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54663 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEUsq-0003Df-9z for qemu-devel@nongnu.org; Thu, 03 Jul 2008 15:54:24 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KEUsn-00085e-Mv for qemu-devel@nongnu.org; Thu, 03 Jul 2008 19:54:22 +0000 Received: from ths by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KEUsn-00085O-4b for qemu-devel@nongnu.org; Thu, 03 Jul 2008 19:54:21 +0000 MIME-Version: 1.0 Errors-To: ths Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Thiemo Seufer Message-Id: Date: Thu, 03 Jul 2008 19:54:21 +0000 Subject: [Qemu-devel] [4842] Clarified filename handling, by Johannes Schindelin. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4842 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4842 Author: ths Date: 2008-07-03 19:54:19 +0000 (Thu, 03 Jul 2008) Log Message: ----------- Clarified filename handling, by Johannes Schindelin. Modified Paths: -------------- trunk/block-vvfat.c Modified: trunk/block-vvfat.c =================================================================== --- trunk/block-vvfat.c 2008-07-03 18:51:23 UTC (rev 4841) +++ trunk/block-vvfat.c 2008-07-03 19:54:19 UTC (rev 4842) @@ -1410,7 +1410,12 @@ } typedef struct { - unsigned char name[1024]; + /* + * Since the sequence number is at most 0x3f, and the filename + * length is at most 13 times the sequence number, the maximal + * filename length is 0x3f * 13 bytes. + */ + unsigned char name[0x3f * 13 + 1]; int checksum, len; int sequence_number; } long_file_name;