... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Oct 15 16:00:14 2013 EDT 2013 (dar) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav: bb #8696 - Bug reported by NIW Solutions |
|
4 |
+ |
|
1 | 5 |
Fri Oct 11 16:50:34 2013 EDT 2013 (dar) |
2 | 6 |
------------------------------------ |
3 | 7 |
* bb #9072: clamscan message separator fix |
... | ... |
@@ -154,9 +154,9 @@ static int find_stream_bounds(const char *start, off_t bytesleft, off_t byteslef |
154 | 154 |
return 0; |
155 | 155 |
if (bytesleft >= 2 && q2[0] == '\xd' && q2[1] == '\xa') { |
156 | 156 |
q2 += 2; |
157 |
- if (newline_hack && q2[0] == '\xa') |
|
157 |
+ if (newline_hack && (bytesleft > 2) && q2[0] == '\xa') |
|
158 | 158 |
q2++; |
159 |
- } else if (q2[0] == '\xa') |
|
159 |
+ } else if (bytesleft && q2[0] == '\xa') |
|
160 | 160 |
q2++; |
161 | 161 |
*stream = q2 - start; |
162 | 162 |
bytesleft2 -= q2 - start; |