Skip to content

XZOutputStream failes if preset is larger than 7  #9

@ied206

Description

@ied206

XZOutputStream throws an exception when its preset set to 8 or 9.
For detail, this exception is raised from XZOutputStream.cs line 83.

System.InsufficientMemoryException: 'Memory allocation failed'

It only happens if XZ.NET is using 32bit version of liblzma.dll, and it happens regardless of liblzma.dll's version (5.2.1 and 5.2.3 tested).

To reproduce, please use the test code from pull request #8 .

Tested Environment

  • Windows 10 x64 v1709
  • .Net Framework 4.7.1 installed
  • XZ.NET 2.0 trageting .Net Framework 4 Client Profile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions