Skip to content

Reduce chance for overflow in ParseTime#331

Open
bmwiedemann wants to merge 1 commit intoInterNetNews:mainfrom
bmwiedemann:time
Open

Reduce chance for overflow in ParseTime#331
bmwiedemann wants to merge 1 commit intoInterNetNews:mainfrom
bmwiedemann:time

Conversation

@bmwiedemann
Copy link

Without this patch, an input of 802M (months) could surprisingly produce a negative return value.

Use atoi to match the type of the tmp variable.

This patch was done while reviewing potential year-2038 issues in openSUSE.

Without this patch, an input of 802M (months) could surprisingly produce
a negative return value.

Use `atoi` to match the type of the tmp variable.

This patch was done while reviewing potential year-2038 issues in openSUSE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant