PadderIso7816: Do not allow to pad empty ranges.
Chaos Ci / test (push) Successful in 2m39s
Chaos Ci / benchmark (push) Successful in 1m50s

This commit is contained in:
hashlag
2026-08-13 01:22:14 +03:00
parent ac122f0f9f
commit 8adc867a2e
2 changed files with 21 additions and 17 deletions
+5
View File
@@ -7,6 +7,7 @@
#include "Padding/Padder.hpp"
#include "Service/Branchless.hpp"
#include "Service/ChaosException.hpp"
namespace Chaos::Padding
{
@@ -28,6 +29,10 @@ public:
*it = 0;
}
}
else
{
throw Service::ChaosException("PadderIso7816::Pad(): invalid range");
}
}
struct ComputeUnpadResult