Skip to content

Fix segfaults from invalid language input - #38

Open
stone-w4tch3r wants to merge 2 commits into
naraesk:masterfrom
stone-w4tch3r:master
Open

stone-w4tch3r wants to merge 2 commits into
naraesk:masterfrom
stone-w4tch3r:master

Conversation

@stone-w4tch3r

Copy link
Copy Markdown
Contributor

Fixes #34

Adds validation to prevent segfaults when:

  • Invalid language codes are entered (e.g., deeeee e)
  • Invalid source-target pairs are entered (e.g., abc-abc a)

The parser now properly handles missing/invalid language lookups.

@stone-w4tch3r

Copy link
Copy Markdown
Contributor Author

@naraesk pinging you cause AFAIK by default github may not send a notifications about new PRs in your repo unles you explicitly enable it's tracking

@naraesk

naraesk commented May 13, 2026

Copy link
Copy Markdown
Owner

Yes, I'll get the notifications for new PRs & issues. :)

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 this pull request may close these issues.

Segmentation faults due to missing validation/initialization

2 participants