Steve Wills Fix vmmemctl.ko driver build for supported FreeBSD releases.
- https://github.com/vmware/open-vm-tools/pull/140
+
+[Code]Ai Highlighted a potential NULL pointer dereference and four
+ pieces of dead code.
+ - https://github.com/vmware/open-vm-tools/pull/247
/*********************************************************
- * Copyright (C) 2008-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2018 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
goto exit;
}
m->mnt_opts = memcpy(buf + n, opts, len);
- n += len;
}
ret = 0;
/*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* according to POSIX 1003.1-2003, so patch up the errno.
*/
if (error == 0) {
- error = ENOENT;
+ errno = ENOENT;
}
return FALSE;
}
ToolsPlugin *plugin = g_ptr_array_index(state->plugins, state->plugins->len - 1);
GArray *regs = (plugin->data != NULL) ? plugin->data->regs : NULL;
- g_message("Unloading plugin '%s'.\n", plugin->data->name);
+ g_message("Unloading plugin '%s'.\n",
+ plugin->data != NULL ? plugin->data->name : "unknown");
if (regs != NULL) {
guint i;
} else {
ToolsCmd_PrintErr(SU_(error.message, "Error: %s\n"), err);
}
-
- rc = EX_TEMPFAIL;
break;
}