Skip to content

Commit

Permalink
Add script file for target 3
Browse files Browse the repository at this point in the history
Does not yet add target 3 to the test suite
  • Loading branch information
danmatichuk committed Feb 28, 2024
1 parent e902804 commit f4f7fa2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demos/nov-2023/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ target3: target3.original.so target3.patched.so
-s _ZN3ros22TransportPublisherLink15onMessageLengthERKN5boost10shared_ptrINS_10ConnectionEEERKNS1_12shared_arrayIhEEjb \
-s _ZN3ros22TransportPublisherLink16onHeaderReceivedERKN5boost10shared_ptrINS_10ConnectionEEERKNS_6HeaderE \
-s _ZN3ros22TransportPublisherLinkD2Ev \
--save-macaw-cfgs target1_CFGs
--save-macaw-cfgs target1_CFGs \
--ignore-warnings NonTotalBlockExits \
--ignore-warnings RequiresInvalidPointerOps \
--script target3.pate

target3.diff: target3.original.so target3.patched.so
arm-none-eabi-objdump -M force-thumb-mode -d target3.original.so > target3.original.dump
Expand Down
40 changes: 40 additions & 0 deletions demos/nov-2023/target3.pate
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Choose Entry Point
> Function Entry "onMessageLength"

Function Entry "onMessageLength"
...
Call to: "function4" (segment1+0x71980) Returns to: "onMessageLength" (segment1+0x1200b8) (original) vs. Jump to: "onMessageLength" (segment1+0x11ffc0)
...
...
> Choose desynchronization points

Choose a desynchronization point:
> segment1+0x11ffc0 (original)
> segment1+0x11ffc0 (patched)


segment1+0x11ffc0 [ via: "onMessageLength" (segment1+0x11febc) ]
Block Exits
...
...
Control flow desynchronization found
> Align control flow in equivalence condition


segment1+0x11ebe4
Block Exits
...
...
Control flow desynchronization found
> Align control flow in equivalence condition

segment1+0x11ec7c
Block Exits
...
...
Control flow desynchronization found
> Align control flow in equivalence condition

Verification Finished
Continue verification?
> Finish and view final result

0 comments on commit f4f7fa2

Please sign in to comment.