- Timestamp:
- Mar 19, 2015, 12:07:19 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/liboath/oath_uri_decode.c
r788 r858 59 59 ilen = strlen(in); 60 60 for (ipos = opos = 0; ipos < ilen && in[ipos] != '\0'; ++ipos, ++opos) { 61 if (in[ipos] == '%' && 61 if (in[ipos] == '%' && ipos + 2 < ilen && 62 62 is_xdigit(in[ipos + 1]) && is_xdigit(in[ipos + 2])) { 63 63 if (out != NULL && opos < olen - 1) … … 65 65 unhex(in[ipos + 2]); 66 66 ilen += 2; 67 ipos += 2; 67 68 } else { 68 69 if (out != NULL && opos < olen - 1)
Note: See TracChangeset
for help on using the changeset viewer.