PadderIso7816: Do not allow to pad empty ranges.
Chaos Ci / test (push) Successful in 3m3s
Chaos Ci / benchmark (push) Successful in 1m26s

This commit is contained in:
hashlag
2026-08-13 01:17:54 +03:00
parent 4e5627b503
commit 5966c32121
2 changed files with 21 additions and 17 deletions
+5
View File
@@ -4,6 +4,7 @@
#include <cstdint>
#include "Padding/Padder.hpp"
#include "Service/ChaosException.hpp"
namespace Chaos::Padding
{
@@ -25,6 +26,10 @@ public:
*it = 0;
}
}
else
{
throw Service::ChaosException("PadderIso7816::Pad(): invalid range");
}
}
};