From: <gi...@ba...> - 2011-08-20 12:50:03
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Bacula Community source". The branch, Branch-5.1 has been updated via 35566a2417bff751828d37dd060429789279d3a0 (commit) from 59196f69a78d82661528b234a4f069dcc61fe506 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 35566a2417bff751828d37dd060429789279d3a0 Author: Kern Sibbald <ke...@si...> Date: Sat Aug 20 14:47:11 2011 +0200 Fix possible buffer overrun in exchange plugin ----------------------------------------------------------------------- Summary of changes: diff --git a/bacula/src/win32/filed/plugins/exchange-fd.c b/bacula/src/win32/filed/plugins/exchange-fd.c index 2222270..8e654fb 100644 --- a/bacula/src/win32/filed/plugins/exchange-fd.c +++ b/bacula/src/win32/filed/plugins/exchange-fd.c @@ -312,7 +312,7 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value) } { _DebugMessage(0, "backup command=%s\n", (char *)value); - char *command = new char[strlen((char *)value)]; + char *command = new char[strlen((char *)value) + 1]; strcpy(command, (char *)value); char *plugin_name = strtok((char *)command, ":"); char *path = strtok(NULL, ":"); hooks/post-receive -- Bacula Community source |