Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple wrong input causes NIFC to crash #537

Closed
Araq opened this issue Feb 13, 2025 · 0 comments
Closed

Simple wrong input causes NIFC to crash #537

Araq opened this issue Feb 13, 2025 · 0 comments
Assignees

Comments

@Araq
Copy link
Member

Araq commented Feb 13, 2025


(.nif24)

(stmts
  (proc :foo.escapedproc (params (param :x.p . unsigned\20char.c)) unsigned\20int.c . (stmts
    (ret x.p)
  ))
  4,4,"foo.nim"
  (oo ((())))
)

The problem here is that the NIF parser interprets "foo.nim" as an empty filename which is strange but according to the spec. This empty filename then causes a crash later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants