aboutsummaryrefslogtreecommitdiff
path: root/libbbot
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-01 19:58:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-01 19:58:32 +0300
commit4ef51955f2c0c2da17bb922d52fd39eae0bf4464 (patch)
tree51f4e1cf5ae5e4c741cf1175821daa6363e32731 /libbbot
parentfa00e853d17b40d9112cb856ca1f08dfe8500f20 (diff)
Add challenge size check in task response manifest parser
Diffstat (limited to 'libbbot')
-rw-r--r--libbbot/manifest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbbot/manifest.cxx b/libbbot/manifest.cxx
index 02a5b05..56c5f1d 100644
--- a/libbbot/manifest.cxx
+++ b/libbbot/manifest.cxx
@@ -656,8 +656,8 @@ namespace bbot
if (challenge)
bad_name ("task response challenge redefinition");
- if (v.empty ())
- bad_value ("empty task response challenge");
+ if (v.size () != 64)
+ bad_value ("invalid task response challenge");
challenge = move (v);
}