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 committed 2026-08-13 01:17:54 +03:00
1 parent 4e5627b503
commit 5966c32121
2 files changed
+21 -17

No files matched your search

+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");
}
}
};