From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJnmP-0006D0-Cw for qemu-devel@nongnu.org; Sat, 01 Mar 2014 12:33:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJnmH-0000PQ-02 for qemu-devel@nongnu.org; Sat, 01 Mar 2014 12:32:53 -0500 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:48456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJnmG-0000PK-Os for qemu-devel@nongnu.org; Sat, 01 Mar 2014 12:32:44 -0500 Received: by mail-pd0-f177.google.com with SMTP id g10so2028264pdj.8 for ; Sat, 01 Mar 2014 09:32:43 -0800 (PST) Message-ID: <531219CC.4050505@gmail.com> Date: Sun, 02 Mar 2014 01:33:00 +0800 From: Chen Gang MIME-Version: 1.0 References: <52EF68CA.9060604@gmail.com> <20140203103429.GB10408@redhat.com> <52EF71DC.3000309@gmail.com> <52F0C8BA.7020709@gmail.com> <20140204110631.GD5632@redhat.com> <52F0CD67.5070601@gmail.com> <87siry3l7t.fsf@linux.vnet.ibm.com> <52F17B5E.1050602@gmail.com> <52FF3182.9090106@gmail.com> <53097D8E.1030803@gmail.com> <87sir850ho.fsf@blackfin.pond.sub.org> <87ha7o3c5x.fsf@blackfin.pond.sub.org> <530FCBAD.10305@gmail.com> In-Reply-To: <530FCBAD.10305@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/3] hw/9pfs: fix 3 issues which related with path string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , "Aneesh Kumar K.V" , aliguori@amazon.com, Eric Blake , "Daniel P. Berrange" Cc: QEMU Developers Patch 1/3: move v9fs_string_free() to below "err_out:" Patch 2/3: use snprintf() instead of sprintf() (which will be replaced of by Path 3/3) Patch 3/3: use g_strdup_printf() instead of PATH_MAX limitation Signed-off-by: Chen Gang --- hw/9pfs/cofs.c | 15 ++- hw/9pfs/virtio-9p-handle.c | 9 +- hw/9pfs/virtio-9p-local.c | 286 +++++++++++++++++++++++++++-------------- hw/9pfs/virtio-9p-posix-acl.c | 52 ++++++-- hw/9pfs/virtio-9p-xattr-user.c | 27 +++- hw/9pfs/virtio-9p-xattr.c | 9 +- hw/9pfs/virtio-9p-xattr.h | 27 +++- hw/9pfs/virtio-9p.h | 6 +- 8 files changed, 293 insertions(+), 138 deletions(-)