Skip to content

Format mismatch causing segfault #5103

@azazar

Description

@azazar

Is there an existing issue for this?

  • I have searched the existing issues

Midnight Commander version and build configuration

GNU Midnight Commander 4.8.33-724-gab7c8c4c2
Built with GLib 2.84.4 (using GLib 2.84.4)
Built with S-Lang 2.3.3 and terminfo database (using S-Lang 2.3.3)
Built with libssh2 1.11.1
With builtin editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, shell
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; uintmax_t: 64;

Operating system

Linux 78af5286bf65 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux

Is this issue reproducible using the latest version of Midnight Commander?

  • I confirm the issue is still reproducible with the latest version of Midnight Commander

How to reproduce

Attempt to open Zip file with random extension other than ".zip"

Expected behavior

display error message box saying "Cannot open "%s" in parse mode"

Actual behavior

segmentation fault

Additional context

Introduced in d69da19#diff-88088df415d8479112df2e92572298c06a2420e80fc121403b17ce0dbd55e4e6R394

Caused by format/arguments mismatch in "mcview_show_error (view, _ ("Cannot open\n%s\nin parse mode\n%s"), file);"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mcviewmcview, the built-in text editorprio: mediumHas the potential to affect progress

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions