Code Monkey home page Code Monkey logo

Comments (7)

kenodegard avatar kenodegard commented on June 3, 2024 1

@mxschmitt what about with conda-build=24.3.0 and py-lief<0.14?

from conda-build.

kenodegard avatar kenodegard commented on June 3, 2024 1

Fixed in #5348, to be included in the upcoming patch release conda-build 24.5.1

from conda-build.

kenodegard avatar kenodegard commented on June 3, 2024

cc @mbargull

from conda-build.

mxschmitt avatar mxschmitt commented on June 3, 2024

I can confirm that:

good: py-lief=0.12.3
bad: py-lief=0.14.1

Note: There is no 0.13 on conda.

Quite a large range: lief-project/LIEF@0.12.1...0.14.1

from conda-build.

mxschmitt avatar mxschmitt commented on June 3, 2024

I got a minimal repro:

curl -O https://nodejs.org/dist/v20.12.0/node-v20.12.0-linux-arm64.tar.xz
tar -xf node-v20.12.0-linux-arm64.tar.xz

python -c 'import lief; binary = lief.parse("node-v20.12.0-linux-arm64/bin/node"); print(str(binary))'

Expected: Some stringified value
Actual: MemoryError: std::bad_alloc

good: py-lief=0.12.3
bad: py-lief=0.14.1

Maybe we should re-think the str() in get_uniqueness_key which was added in #5228 - with the good py-lief version it ended up in a 33 MB long string which does not sound ideal.

Should I file it upstream that it now ends up in MemoryError: std::bad_alloc?

from conda-build.

mxschmitt avatar mxschmitt commented on June 3, 2024

Update: lief-project/LIEF#1039 (comment)

from conda-build.

mbargull avatar mbargull commented on June 3, 2024

Oh, my bad! The change from gh-5228 to use str(file) is simply wrong; we should just return the filename instead (this is what the previous binary.name did).
Thanks for the bug report!
I'll put a fix together in a bit.

from conda-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.