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

divide by zero in instance creation #2238

Closed
Zekken01 opened this issue Apr 9, 2018 · 3 comments
Closed

divide by zero in instance creation #2238

Zekken01 opened this issue Apr 9, 2018 · 3 comments
Labels

Comments

@Zekken01
Copy link

Zekken01 commented Apr 9, 2018

pasting

int main()
{
    int i = 1 / 0;
}

into the create an instance causes weird stuff

@peterix peterix added the bug label Apr 9, 2018
@peterix
Copy link
Member

peterix commented Apr 9, 2018

Instance naming needs some filtering:

  • normalize whitespace to single spaces
  • remove leading and trailing whitespace
  • strip newlines and weird characters
  • remove invisible unicode characters?
  • forbid usage of !

For the on-disk name:

  • strip/ASCII-ize unicode
  • replace whitespace with _

@peterix
Copy link
Member

peterix commented Apr 9, 2018

Also see:
#847
#1105
#1674

@peterix
Copy link
Member

peterix commented Oct 31, 2018

This particular instance of this problem has been fixed in develop.

@peterix peterix closed this as completed Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants