Fix #19063: Add check in utility macro

This commit is contained in:
U+039b
2016-06-18 18:43:44 +02:00
committed by Nick Mathewson
parent 81cfd5c9a1
commit 58e6a6aaeb
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -1111,6 +1111,9 @@ tor_digest256_is_zero(const char *digest)
/* Were there unexpected unconverted characters? */ \
if (!next && *endptr) \
goto err; \
/* Illogical (max, min) inputs? */ \
if (max < min) \
goto err; \
/* Is r within limits? */ \
if (r < min || r > max) \
goto err; \