Skip to content

Commit 83fc346

Browse files
authored
fix: boundary marker corruption haraka/Haraka#3068 (#2)
1 parent a6cd3f2 commit 83fc346

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Changes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
### Unreleased
33

44

5+
### [1.1.0] - 2022-06-23
6+
7+
- fix: boundary marker corruption issue haraka/Haraka#3068
8+
9+
10+
511
## 1.0.0 - 2022-06-23
612

713
- Import from Haraka
814
- convert tests to mocha
915

16+
[1.1.0]: https://github.com/haraka/message-stream/releases/tag/1.1.0

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class MessageStream extends Stream {
292292
this.read_ce.fill(line);
293293
}
294294
// Check for data left in the buffer
295-
if (buf.length > 0) {
295+
if (buf.length > 0 && this.headers_found_eoh) {
296296
this.read_ce.fill(buf);
297297
}
298298
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-message-stream",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Haraka message stream library",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)