From: Eric Bollengier Date: Wed, 27 Jan 2010 08:29:40 +0000 (+0100) Subject: Check pool memory size for truncate op X-Git-Tag: Release-5.0.1~148 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0fcd439e30f5a8ebbffdf43bdd147f26a797384;p=bacula%2Fbacula Check pool memory size for truncate op --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 400647da13..fcb8c38d18 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -890,6 +890,9 @@ static bool action_on_purge_cmd(JCR *jcr) DCR *dcr; int action; + devname.check_size(dir->msglen+1); + volumename.check_size(dir->msglen+1); + if (sscanf(dir->msg, "action_on_purge %127s vol=%s action=%d", devname.c_str(), volumename.c_str(), &action) != 3) { dir->fsend(_("3916 Error scanning action_on_purge command\n"));