From: VMware, Inc <> Date: Tue, 13 Mar 2012 20:04:05 +0000 (-0700) Subject: Return an error if the specified run script text is too large. X-Git-Tag: 2012.03.13-651368~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b383087dfdfe03ee60e4bf3cf533366727415ad8;p=thirdparty%2Fopen-vm-tools.git Return an error if the specified run script text is too large. VixMsg_AllocRequestMsg() ASSERTs if the message size exceeds VIX_COMMAND_MAX_REQUEST_SIZE. Made code changes to return an error if the specified script text is too large. Defined a new error code for this specific error case. Added a remark in the documentation for VixVM_RunScriptInGuest() function. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vix.h b/open-vm-tools/lib/include/vix.h index 2e9aaddfd..8475218de 100644 --- a/open-vm-tools/lib/include/vix.h +++ b/open-vm-tools/lib/include/vix.h @@ -120,6 +120,7 @@ enum { VIX_E_AUTHENTICATION_FAIL = 35, VIX_E_HOST_CONNECTION_LOST = 36, VIX_E_DUPLICATE_NAME = 41, + VIX_E_ARGUMENT_TOO_BIG = 44, /* Handle Errors */ VIX_E_INVALID_HANDLE = 1000,