Skip to content

Add __slots__ to expressions (trailofbits#1635)#3

Merged
fengjixuchui merged 5 commits into
fengjixuchui:masterfrom
trailofbits:master
Apr 2, 2020
Merged

Add __slots__ to expressions (trailofbits#1635)#3
fengjixuchui merged 5 commits into
fengjixuchui:masterfrom
trailofbits:master

Conversation

@fengjixuchui

Copy link
Copy Markdown
Owner

No description provided.

sschriner and others added 5 commits March 30, 2020 12:59
* Added support for proc/self/maps

* Corrected formatting

* Updated ProcSelfMaps object

* Fix for codeclimate

* Updates according to Eric H.'s feedback

* Added a data class for ProcSelfMapInfo. May make a few more adustments to this

* Changed address to a property in ProcSelfMapInfo

* adding a rust binary test

* Added a test for proc self to test_linux

* Updated the address and perms property tests to use a regex

* Updated the regex check
* Add an implementation of sys_llseek for Linux

* Reformat a couple funny string literals

* Add a docstring for `sys_llseek`

This was taken mainly from the manpage.

* Fix a broken log format string

* Improve logging & exception messages in linux platform

* Update docstring for sys_lseek

* Remove redundant space in mmap mode strings

* Clean up temp files after linux platform tests

* Add some tests for the `sys_lseek`

* blacken tests/native/test_syscalls.py

* Fix implementation of sys_llseek; expand & refine tests

* blacken manticore/platforms/linux.py

* Add some type signatures

* Fix type signatures; add more signatures

* Fix a bad variable reference

* More type signatures; fix typing issues with linux `sys_write()`
…1649)

It turns out that in smaller programs, like
examples/linux/binaries/multiple-styles, something like 15-20% of total
runtime is spent redundantly initializing the Z3 solver!
* Restructure SMTLib to avoid multiple inheritance

* Attempt to fix usage of Constant/Variable/Operation outside of expressions

* Fix init arguments

* Fix missing return statement in visit_ArraySelect

* Add Missing ArrayVariable

* Extraneous return statement

* Rename ConstantType, VariableType, and OperationType

Remove the 'Type' to make the diff smaller

* Add __slots__ in Expressions

* Blacken...

* Fix mypy

* Fix dropped array operand

* Return output from visit_operation properly

* Shrink diff

* Shrink Diff 2

* Clean up visitor rewrite

Much smaller diff now

* Maybe this will fix the truffle tests?

Who knows...

* Remove NVM

* Use setdefault for taint

* Add test to check for required properties
@fengjixuchui
fengjixuchui merged commit f044872 into fengjixuchui:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants