mc/lib/widget
Andreas Mohr 84e482abe9 (quick_dialog_skip): fix undefined behavior.
quick.c:432:28: runtime error: member access within null pointer of type 'Widget' (aka 'struct Widget')
   #0 in quick_dialog_skip lib/widget/quick.c:432:28
   #1 in file_mask_dialog src/filemanager/filegui.c:1462:19
   #2 in do_confirm_copy_move src/filemanager/file.c:1977:11
   #3 in panel_operate src/filemanager/file.c:3536:16
   #4 in copy_cmd src/filemanager/./cmd.h:111:5
   #5 in midnight_execute_cmd src/filemanager/filemanager.c:1177:9
   #6 in midnight_callback src/filemanager/filemanager.c
   #7 in send_message lib/widget/../../lib/widget/widget-common.h:255:15
   #8 in buttonbar_call lib/widget/buttonbar.c:157:15
   #9 in buttonbar_callback lib/widget/buttonbar.c:174:42
   #10 in send_message lib/widget/../../lib/widget/widget-common.h:255:15
   #11 in group_handle_hotkey lib/widget/group.c:566:23
   #12 in group_default_callback lib/widget/group.c:640:16
   #13 in dlg_default_callback lib/widget/dialog.c:370:16
   #14 in midnight_callback src/filemanager/filemanager.c:1615:16
   #15 in send_message lib/widget/../../lib/widget/widget-common.h:255:15
   #16 in group_handle_key lib/widget/group.c:503:15
   #17 in group_default_callback lib/widget/group.c:637:16
   #18 in dlg_key_event lib/widget/dialog.c:252:19
   #19 in dlg_process_event lib/widget/dialog.c:539:9
   #20 in frontend_dlg_run lib/widget/dialog.c:321:9
   #21 in dlg_run lib/widget/dialog.c:573:5
   #22 in do_nc src/filemanager/filemanager.c:1826:16
   #23 in main src/main.c:469:21
   #24 in <null> <null>
   #25 in __libc_start_main <null>
   #26 in _start <null>

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior quick.c:432:28.

Found by Clang-19 Static Analyzer.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2024-12-21 09:39:36 +03:00
..
background.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
background.h Create WBackground widget. 2020-03-08 20:17:29 +03:00
button.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
button.h achown: add callback for permission buttons 2017-12-10 09:19:15 +03:00
buttonbar.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
buttonbar.h (buttonbar_find): rename from find_buttonbar. 2023-03-19 20:34:24 +03:00
check.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
check.h (check_set_text): new WCheck API. 2019-12-15 13:02:31 +03:00
dialog-switch.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
dialog-switch.h Ticket #4584: re-implement mocking via weak symbols instead of symbol duplication 2024-10-19 08:56:40 +02:00
dialog.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
dialog.h Move the some stuff from dialog.[ch] to dialog-switch.[ch]: 2023-08-04 21:04:54 +03:00
frame.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
frame.h WGroup: support colors. 2020-03-08 20:17:32 +03:00
gauge.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
gauge.h Ticket #2076: make copy/move/delete progress dialog wider. 2013-01-14 16:23:17 +04:00
group.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
group.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
groupbox.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
groupbox.h lib/widget/*.[ch]: fix indentation. 2012-11-20 13:27:10 +04:00
history.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
history.h Fix various typos in the source code (closes MidnightCommander/mc#177). 2023-01-28 21:38:05 +03:00
hline.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
hline.h (hline_set_textv): new API. 2020-05-17 18:48:19 +03:00
input_complete.c Ticket #4584: re-implement mocking via weak symbols instead of symbol duplication 2024-10-19 08:56:40 +02:00
input.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
input.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
label.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
label.h Clarify __attribute ((format (printf))) usage. 2015-11-05 14:33:20 +03:00
listbox-window.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
listbox-window.h Listbox window: rename functions. 2023-03-19 20:34:24 +03:00
listbox.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
listbox.h (listbox_add_item_take): new WListbox API. 2024-06-02 12:41:34 +03:00
Makefile.am Input complete: refactoring. 2020-05-17 18:48:19 +03:00
menu.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
menu.h Menu: renames: 2023-08-04 21:04:54 +03:00
mouse.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
mouse.h WGroup: support mouse events. 2020-03-08 20:17:32 +03:00
quick.c (quick_dialog_skip): fix undefined behavior. 2024-12-21 09:39:36 +03:00
quick.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
radio.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
radio.h Ticket #212: implement keybindings for radiobuttons. 2020-05-17 18:48:18 +03:00
rect.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
rect.h (rect_grow): new API. 2022-06-05 11:50:19 +03:00
widget-common.c (widget_focus): fix -Wanalyzer-deref-before-check warning 2024-12-15 14:06:21 +03:00
widget-common.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
wtools.c Fix garbage return value warning. 2024-12-18 21:12:14 +03:00
wtools.h Ticket #4584: re-implement mocking via weak symbols instead of symbol duplication 2024-10-19 08:56:40 +02:00