PadderPkcs7: Do not allow to pad empty ranges.
Chaos Ci / test (push) Successful in 3m2s
Chaos Ci / benchmark (push) Successful in 1m50s

This commit is contained in:
hashlag
2026-08-03 02:39:44 +03:00
parent cd4e4b9cfc
commit 8ff1e4b369
2 changed files with 14 additions and 5 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ public:
{
auto dist = std::distance(begin, end);
// TODO: dist > 0
if (dist >= 0 && dist <= std::numeric_limits<uint8_t>::max())
if (dist > 0 && dist <= std::numeric_limits<uint8_t>::max())
{
for (OutputIt it = begin; it != end; ++it)
{