[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] Increase FrontendPath length for long DeviceIds
The DeviceIds maximum value is 1 << 28 | 0xfffff << 8 | 0xff, which is a 9 digit decimal numver. Values higher than this are invalid. Ensure the FrontendPath buffer is large enough to contain valid DeviceId values. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- src/xenvbd/frontend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenvbd/frontend.c b/src/xenvbd/frontend.c index 3fa19a0..d74f0b3 100644 --- a/src/xenvbd/frontend.c +++ b/src/xenvbd/frontend.c @@ -62,7 +62,7 @@ struct _XENVBD_FRONTEND { PXENVBD_TARGET Target; ULONG TargetId; ULONG DeviceId; - CHAR FrontendPath[sizeof("device/vbd/XXXXXXXX")]; + CHAR FrontendPath[sizeof("device/vbd/XXXXXXXXX")]; PCHAR BackendPath; CHAR TargetPath[sizeof("data/scsi/target/XXXX")]; USHORT BackendDomain; -- 2.16.2.windows.1 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |