Improve legacy EOF detector: Must be at least >= size of SAUCE

This commit is contained in:
Bryan Ashby 2019-05-13 21:31:34 -06:00
parent b0d081ad04
commit 228d3e3ae7
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ function sliceAtEOF(data, eofMarker) {
break; break;
} }
} }
if(eof === data.length || eof < 128) {
return data;
}
return data.slice(0, eof); return data.slice(0, eof);
} }