Skip to content

Hex diff rework - #3665

Draft
NewtronReal wants to merge 20 commits into
rizinorg:devfrom
NewtronReal:hex-diff-rework
Draft

NewtronReal wants to merge 20 commits into
rizinorg:devfrom
NewtronReal:hex-diff-rework

Conversation

@NewtronReal

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've updated the documentation with the relevant information (if needed)
  • I've used AI tools to generate fully or partially these code changes and I'm sure the changes are not copyrighted by somebody else.

HexDiffView Rework
This pull request is simply a rework of HexDiffView in the Cutter Diff. Since the early Cutter Diff PR was becoming too long i decided to keep this a seperate PR.

What's new:
User:

  • HexDiffViews can be resized
  • HexDiffViews can be seeked(WIP)
  • HexDiffViews can be oriented vertically or horizontally splitted.

Dev:

  • Earlier HexDiffView was based on cutters existing HexWidget which had a lot of elements which had to be transformed for HexDiffView especially the DiffFileContext based hexdiffview repainting caused unnecessary design and scaling constriaints on it.
  • Old HexDiffView fixed FileA's address space as the reference address where as the new one uses a seperate reference address space and a syncer element HexDiffViewSyncer which coordinates to HexDiffViews based on the common address space.(Implemented through HexDiffScrollBar)
  • Both A and B files were printed by the same widget in the old hexdiffview. Here instead there are two hexdiffViews synced by a HexDiffSyncer.
  • Introduction of seek feature would've introduced so many edge cases the new one is aiming to solve those.

One of such edge cases will be
Distinguishing address seek from CutterDiffItem seeking(syncing Item based widgets and address based widgets).

The work is still in progress.

image

Addresses #3625

@NewtronReal
NewtronReal marked this pull request as draft September 27, 2026 13:16
@notxvilka
notxvilka requested a review from PremadeS September 27, 2026 13:24
@wargio

wargio commented Nov 5, 2026

Copy link
Copy Markdown
Member

@NewtronReal any updates?

@NewtronReal

Copy link
Copy Markdown
Contributor Author

Been busy with the exams for last few weeks. Will be commuting all the work done by the weekend.

clang formatted

new changes
clang format
turn off CUTTER_ASAN
new addition

unnecesssary

unnecessary
new Commit

Code notes.

clang-format

fixed clang-tidy errors

changes

clang-format
…th QList<DiffInstr> by initially parsing the lineDiff
…ng progress

latest changes

Tidy fixes

LineDiffWidget fixes and Minor Bug fixes for compatibility.

minor changes

nothing

fixes

changes

changes
…le trees, theming changes, bindiff sorting changes(both blocks and functions)

clang-format

Compatibility checkstate fixed

chagnes

Seek feature fix and final touches

fix

fixes filterRegexp

This branch has not been deployed

No deployments
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