We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931397f commit 352b705Copy full SHA for 352b705
1 file changed
src/actions/transformations/hex_decode.cc
@@ -28,7 +28,7 @@ static inline int inplace(std::string &value) {
28
auto d = reinterpret_cast<unsigned char *>(value.data());
29
const auto *data = d;
30
31
- for (int i = 0; i <= len - 2; i += 2) {
+ for (std::string::size_type i = 0; i + 1 < len; i += 2) {
32
*d++ = utils::string::x2c(&data[i]);
33
}
34
0 commit comments