We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95ec68e commit be97dfeCopy full SHA for be97dfe
boost/network/uri/decode.hpp
@@ -59,8 +59,14 @@ OutputIterator decode(const InputIterator &in_begin,
59
while (it != in_end) {
60
if (*it == '%') {
61
++it;
62
+ if (it == in_end) {
63
+ throw std::runtime_error("decoding fail because of '%'");
64
+ }
65
value_type v0 = detail::letter_to_hex(*it);
66
67
68
69
70
value_type v1 = detail::letter_to_hex(*it);
71
72
*out++ = 0x10 * v0 + v1;
0 commit comments