Skip to content

Commit c61af64

Browse files
committed
upd
1 parent 3adf11f commit c61af64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=StringUtils
2-
version=1.4.16
2+
version=1.4.17
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Bunch of converting functions for string data

src/utils/convert/url.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ void decode(const char* src, uint16_t len, String& dest) {
6363
if (c != '%') {
6464
dest += (c == '+') ? ' ' : c;
6565
} else {
66+
if (src == end) return;
6667
char c1 = *src++;
68+
if (src == end) return;
6769
char c2 = *src++;
68-
if (!c1 || !c2 || src >= end) return;
6970
dest += char(_decodeNibble(c2) | (_decodeNibble(c1) << 4));
7071
}
7172
}

0 commit comments

Comments
 (0)