1
0
mirror of synced 2024-12-03 19:57:20 +01:00
ImHex/lib/libimhex/source/api
Ada cc97c0e525
fix: Segfault when launching ImHex with file arguments (#1501)
d511080814 introduced a regression where
running imhex with arguments (i.e. `imhex blob1.bin blob2.bin`) will
segfault due to a null pointer dereference.

### Implementation description
This patch updates `getSubCommands` to follow the same control flow as
`getFeatures`, where if the function returns a null pointer, it will
return gracefully rather than crash.
2024-01-18 11:11:06 +01:00
..
achievement_manager.cpp fix: Warnings when trying to load progress for achievements that aren't in save file 2023-12-31 13:53:28 +01:00
content_registry.cpp feat: Added always on top and fullscreen mode toggle 2024-01-15 20:52:08 +01:00
event_manager.cpp refactor: Give API files more consistent names 2023-11-18 14:50:43 +01:00
imhex_api.cpp feat: Added always on top and fullscreen mode toggle 2024-01-15 20:52:08 +01:00
layout_manager.cpp impr: Make sure all views are closed before loading new workspace or layout 2023-12-24 14:51:47 +01:00
localization_manager.cpp refactor: Get rid of this->m_ 2023-12-19 13:10:25 +01:00
plugin_manager.cpp fix: Segfault when launching ImHex with file arguments (#1501) 2024-01-18 11:11:06 +01:00
project_file_manager.cpp impr: General code cleanup 2023-11-10 20:47:08 +01:00
shortcut_manager.cpp impr: Code style improvements 2023-12-27 16:33:49 +01:00
task_manager.cpp fix: Avoid heap allocations in thread local storage 2024-01-10 20:13:53 +01:00
theme_manager.cpp impr: Code style improvements 2023-12-27 16:33:49 +01:00
tutorial_manager.cpp impr: Use full windows to draw tutorial popups 2024-01-06 22:54:18 +01:00
workspace_manager.cpp impr: Make sure all views are closed before loading new workspace or layout 2023-12-24 14:51:47 +01:00