GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LzmaInputStream#close() doesn't close the wrapped InputStream · Issue #14 · jponge/lzma-java

This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

LzmaInputStream#close() doesn't close the wrapped InputStream #14

Copy link
Copy link
Closed
Closed
LzmaInputStream#close() doesn't close the wrapped InputStream#14
Copy link

Description

@Scottmitch
Scottmitch
opened on Nov 16, 2016
Issue body actions

LzmaInputStream wraps an InputStream but does not manage the lifetime of that InputStream [1]. this is generally common practice (e.g. BufferedInputStream, GZIPInputStream, etc...), and may lead to resource leaks if the underlying stream is not managed externally to the LzmaInputStream. Is there a reason why the lifetime of the wrapped stream is not managed?

This may actually be the responsibility of CoderInputStream [2], but I figured I would start here.

[1] https://github.com/jponge/lzma-java/blob/master/src/main/java/lzma/streams/LzmaInputStream.java
[2] https://github.com/cstamas/streams/blob/master/src/main/java/org/cservenak/streams/CoderInputStream.java#L80

Activity

  1. Scottmitch commented on Nov 16, 2016

    @Scottmitch
    Scottmitch
    on Nov 16, 2016
    Author
    More actions

    related to cstamas/streams#1

  2. Scottmitch
    added 2 commits that reference this issue on Nov 16, 2016

    LzmaFrameEncoderTest leak due to LzmaInputStream close behavior

    bea1b32

    LzmaFrameEncoderTest leak due to LzmaInputStream close behavior

    2c78902
  3. jponge
    closed this as completedon Nov 16, 2016
  4. jponge commented on Nov 16, 2016

    @jponge
    jponge
    on Nov 16, 2016 via email
    Owner
    More actions
    Hi, I'm not maintaining this project anymore so I'd suggest that you fix it in your own fork. Thanks!
  5. liuzhengyang
    added a commit that references this issue on Sep 10, 2017

    LzmaFrameEncoderTest leak due to LzmaInputStream close behavior

    033b9a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.