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

[BUG] - new line file endings #143

Closed
Jamesbarford opened this issue Jan 25, 2025 · 0 comments · Fixed by #149
Closed

[BUG] - new line file endings #143

Jamesbarford opened this issue Jan 25, 2025 · 0 comments · Fixed by #149
Labels
bug Something isn't working

Comments

@Jamesbarford
Copy link
Owner

Describe the bug
If a file does not end with a newline the compiler segfaults.

To Reproduce

  1. Write a file that does not end with a newline.
  2. Compile the program and it will segfault.

Example Program

U0 Main(){ "hello world\n"; }Main;

Expected behavior
A clear and concise description of what you expected to happen.

Compiler version
HolyC Compiler 2024. beta-v0.0.8 UNSTABLE

Commit Hash
a324be7a6c43b4e95bc62ae5d88569d8e8cecf82

Desktop (please complete the following information):

  • OS: MacOS Intel

Additional context
Step through with gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant