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-7.0.0~2303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08bf0e55ee7f878c2ceec91429dcab606825808f;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"));