Skip to content

Filenames with spaces cause crash or silent failure #9

@nsputnik

Description

@nsputnik

When vgm2x is given a file path containing spaces, it either crashes with a segfault (exit code 139) or silently produces no output.

To reproduce

# This fails silently (no output, exit code 0):
vgm2x -m OPM "/path/to/02 - Green Hill Zone.vgz"

# Workaround - copy to file without spaces:
cp "/path/to/02 - Green Hill Zone.vgz" /tmp/test.vgz
vgm2x -m OPM /tmp/test.vgz  # Works correctly

Expected behavior

vgm2x should handle filenames with spaces, or provide a clear error message.

Environment

  • macOS 13 (Ventura), Apple Silicon (arm64)
  • vgm2x built from source (current master)

Workaround

Copy files to a temp location with a simple filename, extract, then rename output files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions