jarro2783 / cxxopts

Lightweight C++ command line option parser
MIT License
4.16k stars 582 forks source link

Fix overflow error in integer_parser (fixes #290) #417

Closed ololuki closed 7 months ago

ololuki commented 8 months ago

Checking for overflow should be done before integer overflows.

There are two checks:

fixes #290


This change is Reviewable

jarro2783 commented 7 months ago

Thanks for looking at this and fixing it for me.