Commit 06c7a21
API Cleanup (#35)
* Target newer z3, fmt, clippy
* Remove reference
* Add catch for sleigh size mismatch
* Fix condition
* fmt
* Initial context work
* Add context; will slowly move stuff over to using this instead
* Add derives
* Pub z3
* cargo fmt
* Ditch cargo lock
* Update ci
* Remove registers from context for now
until link issues are fixed
* Relax context requirement
* Add state equality helper
* Bump z3
* Store language id in sleigh context
* Update image section debug
* Oops
* Actually run cargo check this time; comment out thing I didn't finish writing
* Try section flags instead of segment flags
* Add bb-read
* Only load executable sections into ghidra for now
* Only load executable sections into ghidra for now
* Try bumping to ghidra 11.1
* Update how loading is done for ghidra 11.1
* Fix get_registers()
* Update test
* Add section parsing log
* Fmt
* Show range instead
* Kludgy try_from impl, silencing warnings, fmt, clippy
* Clone if there's only one
* impl (Partial)Eq for Instruction
* Derive ParitalEq/Eq so that I can derive Hash soundly
* Readme tweak
* Remove unnecessary compile API now that Ghidraships with precompiled sla.
Also added a new bin target for jingle
* Initial CLI
* cargo fmt
* Basic bin functionality
* Add readme note and two missing operations
* Simplify printed model
* Sleigh parsing tweaks
* Update logo
* Gimli change
* Block tweak
* Add input enumeration
* Add constraint
* Explicitly add pointer dependencies to input call
* Add arch and fmt
* Initial context stuff
* Fixed up C++ build side, now to fix FFI
* Fix stuff and fmt. Builds, but need to make sure it actually works
* Need to fix tests now
* Some small tweaks
* Gitignore, heap-allocate some stuff
* Tweaks
* Move back to storing all images directly in context
* Add test
* Bump ghidra to 11.2
* Fix jingle build
* Fix jingle binary build
* Fixes context variables
* Re-add image
* Add initialize call
* Some bounds checking fixes
* Move pcode/assembly emitters into their own files
* Add test
* Change get_reg impl for now
* Add wrapper to ensure an image is loaded before parsing
* Fmt
* Clippy
* More clippy
* Fix jingle
* fmt
* Clippy
* Fix binary
* Don't consume varnode in `get_register_name`
* Initial trait work
* Tweaks
* Some build fixes
* More stuff
* Maybe just need to add the impls now?
* Build fixed
* fmt
* Clippy
* Actually fix build
* Fix crashes
* Start on gimli
* Impl gimli
* actually actually fix build
* Fmt and gimli tweak
* Remove unused file
* Remove more unused files
* Fix build
* clippy --fix
* Clippy fixes
* Changes to traits
* fmt
* Clippy
* pub perms
* More trait stuff
* Convert LoadedSleighContext to struct
* Trying more stuff
* More trait gymnastics
* Clippy
* Remove unused generic bounds
* Add owned file
* Pub all of gimli
* Reshuffle
* Filter
* Fix loading
* Display register names
* Change display impl
* fmt
* clippy
* fmt
* broken
* Add new address type
* More stuff
* Name tweak
* Changes
* Add memory state relation
* Clippy and fmt
* Fix imports
* More formatting
* Some little pcode tweaks
* Add in pcode operation cpu relations
* Fix CLI build
* Remove extra file
* Simplify concretize
* Add clone to context
* Remove extra lifetime
* ide warnings
* Add methods to apply operations to state
* Remove unsued method
* Add read_bytes
* Initial cache for building cfg
* Add read_bytes
* cherrypick get_bytes
* Fix relative pcode branch destination
* Add helper to summarize branches
* Add helper to summarize branches
* Add initial operation visitor
* Very initial gross control flow recovery
* Add merge of cache
* Update logo
* Update jingle.svg
* Change branch flag
* Remove duplicate def
* Add call
* Made ImageSectionIterator::new pub
This would allow users to implement ImageProvider trait for their datatypes
* Target master branch of z3.rs
* Add rebasing API
* Fix rebasing API
* Context refactor
* Fix formatting
* fmt
* Clippy
* Tweaks
* Make writing to a state consume the state
* Slight reorganization
* Use separate symbolic BVs to avoid unnecessary extract/concat operations
Also fmt
* Clippy --fix
* Clear internal space
* Stop carting around the sleigh context in the modeling context
* Small tweaks
* Only expose image bytes in the code space
* Add doc comment
* clippy
* fmt
* Blanket impl for ImageProvider
* Fmt
* Pub bmc
* re-exports and fallthrough
* Fix spaces
* Bundle Zlib (#23)
* Experiment with bundling zlib
* Check if testing works in CI
* Suppress warnings
* Revert workflow change
* Re-add all-features
* Multiplatform CI (#24)
* Enforce Fmt and Lint in CI
* Build jingle_sleigh on linux, macos, and windows
* Build jingle on linux
* Fix ldefs (#26)
* fix ldef
* return error if there are not ldefs
* fix clippy
---------
Co-authored-by: daniele.linguaglossa <[email protected]>
* Remove explicit dependence on p-code operation memory location from SMT encoding
* fmt
* pub ctx
* Add fun
* Add eq stufff
* Add lazy helper
* Simplify stuff for merge
* fmt + clippy
* Fix some awkward APIs
* Bump version since I probably broke things
* fmt
* fmt
* Clippy
* Clippy
* Re-add api I was using
---------
Co-authored-by: chf0x <[email protected]>
Co-authored-by: Daniele Linguaglossa <[email protected]>
Co-authored-by: daniele.linguaglossa <[email protected]>1 parent 0b94ed6 commit 06c7a21
File tree
29 files changed
+1552
-205
lines changed- jingle_sleigh
- src
- context
- image
- pcode
- varnode
- jingle
- src
- modeling
- machine
- cpu
- memory
- state
- varnode
29 files changed
+1552
-205
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
7 | 48 | | |
8 | 49 | | |
9 | 50 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 51 | + | |
13 | 52 | | |
14 | 53 | | |
15 | 54 | | |
| |||
23 | 62 | | |
24 | 63 | | |
25 | 64 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 65 | + | |
29 | 66 | | |
30 | 67 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
34 | 76 | | |
35 | 77 | | |
36 | 78 | | |
37 | 79 | | |
38 | 80 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 81 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
70 | 87 | | |
71 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
135 | 148 | | |
136 | 149 | | |
137 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments