[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Increase buffer size


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Wed, 9 Oct 2019 09:48:20 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=owen.smith@xxxxxxxxxx; spf=Pass smtp.mailfrom=owen.smith@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Wed, 09 Oct 2019 08:48:51 +0000
  • Ironport-sdr: 2juWAMc3QTtIkAuHyZHir8IQUmZHEBaG6siXnV3S1TRbpd5J1tuVYiH9cqwIjw9uWUFNU+0kL+ awwnuVhL3NbdbLNfnWEST5ZzwOKKybKgYQ6I07G6ZNBNp7Lexs7viXujqSPPPPgFgGbqNYFqLg RVE8eMmUt5zC27+n4PvMS0IDK7JJ+vZG/Fpvdp+/uaHLFw+gvOavUlmG87kTg24AmDSojkdSSf Bj+xjzqPWAbE1VSfnrWOStu+EvM8kXGlw9fNV0hAUYGrSjZgIvcmjJbOQOCylQDLeZMioFGy99 ZGM=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

sizeof("device/vbd/XXXXXXXX") is too small for some of the higher device
identifiers. Increase the size to allow for longer device ids.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenvbd/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenvbd/adapter.c b/src/xenvbd/adapter.c
index 14bab4b..1ae96cf 100644
--- a/src/xenvbd/adapter.c
+++ b/src/xenvbd/adapter.c
@@ -320,7 +320,7 @@ __AdapterHiddenTarget(
 {
     NTSTATUS                status;
     PCHAR                   Buffer;
-    CHAR                    Path[sizeof("device/vbd/XXXXXXXX")];
+    CHAR                    Path[MAXNAMELEN];
     BOOLEAN                 Ejected;
     BOOLEAN                 IsDisk;
 
-- 
2.16.2.windows.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.