From b0fcd439e30f5a8ebbffdf43bdd147f26a797384 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 27 Jan 2010 09:29:40 +0100 Subject: [PATCH] Check pool memory size for truncate op --- bacula/src/stored/dircmd.c | 3 +++ 1 file changed, 3 insertions(+) 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")); -- 2.39.5