Skip to content

Don't crash when given an excessive countdown#41

Merged
N00byKing merged 1 commit into
N00byKing:mainfrom
KScl:countdown-except
May 25, 2026
Merged

Don't crash when given an excessive countdown#41
N00byKing merged 1 commit into
N00byKing:mainfrom
KScl:countdown-except

Conversation

@KScl

@KScl KScl commented May 23, 2026

Copy link
Copy Markdown
Contributor

!countdown -2147483649 -> Json::LogicError "LargestInt out of Int range" -> crash due to unhandled exception
Best not to assume the value fits in an int.

@N00byKing N00byKing merged commit 9194179 into N00byKing:main May 25, 2026
4 checks passed
@N00byKing

Copy link
Copy Markdown
Owner

Thanks! Out of curiosity, did this actually happen?

@KScl

KScl commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

I found it while testing a custom countdown handler in APDoom on my own, though I've definitely seen my usual silly group of suspectsfriends do this in the past, so.

@KScl KScl deleted the countdown-except branch May 26, 2026 02:21
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.

2 participants