(qp_decode): Fixed bug that could overflow the receiving buffer.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -427,6 +427,8 @@ qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, | ... | @@ -427,6 +427,8 @@ qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
427 | } | 427 | } |
428 | } | 428 | } |
429 | wscount = 0; | 429 | wscount = 0; |
430 | if (*nbytes == osize) | ||
431 | break; | ||
430 | } | 432 | } |
431 | 433 | ||
432 | if (c == '=') | 434 | if (c == '=') | ... | ... |
-
Please register or sign in to post a comment