Commit 174ea58d 174ea58d66e5597fdad75873c409067c66ac2e44 by Sergey Poznyakoff

(qp_decode): Fixed bug that could overflow the receiving buffer.

1 parent 840f0476
...@@ -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 == '=')
......