]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Return an error if the specified run script text is too large.
authorVMware, Inc <>
Tue, 13 Mar 2012 20:04:05 +0000 (13:04 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 14 Mar 2012 16:04:58 +0000 (09:04 -0700)
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 <dtor@vmware.com>
open-vm-tools/lib/include/vix.h

index 2e9aaddfd815d22856273c2860eab85faecf9c39..8475218de261fb9539873fefed98e4327f5d2125 100644 (file)
@@ -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,