mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Fix regression introduced in 3592fc8 where slicing the stream to the length breaks decoding
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (0000-0001) (push) Has been cancelled
Run Common Crawl Tests / build (0002-0003) (push) Has been cancelled
Run Common Crawl Tests / build (0004-0005) (push) Has been cancelled
Run Common Crawl Tests / build (0006-0007) (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (0000-0001) (push) Has been cancelled
Run Common Crawl Tests / build (0002-0003) (push) Has been cancelled
Run Common Crawl Tests / build (0004-0005) (push) Has been cancelled
Run Common Crawl Tests / build (0006-0007) (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
This commit is contained in:
@@ -64,17 +64,6 @@
|
||||
|
||||
var transform = stream.Data;
|
||||
|
||||
var length = stream.StreamDictionary.GetIntOrDefault(NameToken.Length, -1);
|
||||
|
||||
// If a length is available and it's smaller than the actual data length, use that. This trims whitespace (e.g. newlines) that might have been introduced during transport.
|
||||
// And with that it handles some issues before individual filters have to deal with it.
|
||||
//
|
||||
// Do this before the first filter (to handle cases like multiple filters, etc).
|
||||
if (length > 0 && length < transform.Length)
|
||||
{
|
||||
transform = transform.Slice(0, length);
|
||||
}
|
||||
|
||||
for (var i = 0; i < filters.Count; i++)
|
||||
{
|
||||
var filter = filters[i];
|
||||
@@ -103,17 +92,6 @@
|
||||
|
||||
var transform = stream.Data;
|
||||
|
||||
var length = stream.StreamDictionary.GetIntOrDefault(NameToken.Length, -1);
|
||||
|
||||
// If a length is available and it's smaller than the actual data length, use that. This trims whitespace (e.g. newlines) that might have been introduced during transport.
|
||||
// And with that it handles some issues before individual filters have to deal with it.
|
||||
//
|
||||
// Do this before the first filter (to handle cases like multiple filters, etc).
|
||||
if (length > 0 && length < transform.Length)
|
||||
{
|
||||
transform = transform.Slice(0, length);
|
||||
}
|
||||
|
||||
for (var i = 0; i < filters.Count; i++)
|
||||
{
|
||||
var filter = filters[i];
|
||||
|
||||
Reference in New Issue
Block a user