Opening a file from the command line fails when its path contains #

Aberta
#8,674 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
57/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp
Domínio
desktop

Direção de pesquisa

The report gives a Windows command line reproduction but names no source files or tests. Start by tracing how command-line arguments become file or URL requests, then find the relevant parsing tests. Done means a path containing # opens as a local file without the URL warning or BadScheme error.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Version and Platform (required):

  • Binary Ninja Version: 6.1.10957-dev
  • Edition: Personal
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x64

Bug Description:
When opening a file from the command line, if its path contains the # character, Binary Ninja displays the following warning:
"This item is being opened in response to url..."
After clicking Open, the following error appears:
"Download Error: BadScheme"
The file does not open.

Steps To Reproduce:

  1. Create a file at
X:\#test\open_me.exe
  1. Run the following command:
binaryninja.exe X:\#test\open_me.exe
  1. Observe the warning: "This item is being opened in response to url..."
  2. Click Open.
  3. Observe the error: "Download Error: BadScheme".

Expected Behavior:
Binary Ninja should open the specified local file normally, regardless of whether its path contains the # character.

Screenshots/Video Recording:
Not attached.

Binary:
Not applicable. The issue appears to be related to handling file paths rather than the contents of a specific binary.

Additional Information:
The issue occurs when the file path contains # and is passed as a command-line argument.

Linguagem predominante
C++
Estrelas
1.3k
Forks
304
Merge médio
2d 20h
PRs com merge (30d)
10

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Vector35/binaryninja-api

Todas as issues de Vector35/binaryninja-api

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.