robmcmullen / omnivore

Hex editor and debugging emulator, sponsored by the Player/Missile Podcast
Mozilla Public License 2.0
53 stars 7 forks source link

copy out of range #226

Open robmcmullen opened 7 years ago

robmcmullen commented 7 years ago

Select range including last byte of image:

Traceback (most recent call last):
  File "/noaa/maproom-deps/omnivore/omnivore8bit/ui/bytegrid.py", line 718, in on_right_down
    self.editor.popup_context_menu_from_actions(self, actions, popup_data)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 809, in popup_context_menu_from_actions
    action.perform(action_event)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/actions.py", line 365, in perform
    self.active_editor.copy()
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 320, in copy
    data_obj = self.create_clipboard_data_object()
  File "/noaa/maproom-deps/omnivore/omnivore8bit/hex_edit/hex_editor.py", line 264, in create_clipboard_data_object
    metadata = self.get_selected_index_metadata(indexes)
  File "/noaa/maproom-deps/omnivore/omnivore8bit/hex_edit/hex_editor.py", line 320, in get_selected_index_metadata
    style = self.segment.get_style_at_indexes(indexes)
  File "/noaa/maproom-deps/omnivore/atrcopy/segments.py", line 861, in get_style_at_indexes
    return self.style[indexes]
IndexError: index 772 is out of bounds for axis 0 with size 772