GithubHelp home page GithubHelp logo

expression simplifications about miasm HOT 3 CLOSED

cea-sec avatar cea-sec commented on July 17, 2024
expression simplifications

from miasm.

Comments (3)

serpilliere avatar serpilliere commented on July 17, 2024

I did the following test:

>>> from miasm2.expression.expression import *
>>> from miasm2.expression.simplifications import expr_simp
>>> eax = ExprId('eax')
>>> expr_simp(ExprOp("^", eax, eax))
ExprInt(uint32(0x0L))
>>> expr_simp(((eax|(eax&(eax^eax)))))
ExprId('eax', 32)

Have you got a script which produces the error?

from miasm.

a-vincent avatar a-vincent commented on July 17, 2024

Hi,

please be aware that a / a and a % a should not be simplified if you
cannot guarantee that a is different from 0.

Regards,
Aymeric

from miasm.

mrphrazer avatar mrphrazer commented on July 17, 2024

@serpilliere Exactly the same code didn't work. However, I couldnt reproduce it on a second machine. After I removed miasm from site-packages, it worked again. No idea where the problem was. Thanks!

@a-vincent Thanks for the hint, I'm aware of that. It wasn't supposed to be commited, just for a project where this assumption holds.

from miasm.

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.