Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- lint: disable rule caching during linting @Maijin #2817
- vmray: skip processes with invalid PID or missing filename @EclipseAditya #2807
- render: use default styling for dynamic -vv API/call details so they are easier to see @devs6186 #1865
- address: fix TypeError when sorting locations containing mixed address types @devs6186 #2195

### capa Explorer Web
- webui: fix 404 for "View rule in capa-rules" by using encodeURIComponent for rule name in URL @devs6186 #2482
Expand Down
5 changes: 5 additions & 0 deletions capa/features/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ def __eq__(self, other):
def __lt__(self, other):
return False

def __gt__(self, other):
# Mixed-type comparison: (real_address < NO_ADDRESS) invokes this so sort works.
# NoAddress sorts last.
return other is not self

def __hash__(self):
return hash(0)

Expand Down