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

ArticleBase: Fix integer overflow #398

Merged
merged 1 commit into from Jul 11, 2020

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Jul 11, 2020

gccのサニタイザーが算術オーバーフローを検出したためintの値をtime_tにキャストします。

サニタイザーのレポート

../src/dbtree/articlebase.cpp:158:37: runtime error: signed integer overflow: 37693 * 86400 cannot be represented in type 'int'

算術オーバーフローしたとgccのサニタイザーが検出したためintの値をtime_t
にキャストします。

サニタイザーのレポート
```
../src/dbtree/articlebase.cpp:158:37: runtime error: signed integer overflow: 37693 * 86400 cannot be represented in type 'int'
```
@ma8ma ma8ma added the bug バグの追跡 label Jul 11, 2020
@ma8ma ma8ma added this to In progress in State of JDim-v0.3.0+ via automation Jul 11, 2020
@ma8ma ma8ma merged commit 0fdae5b into JDimproved:master Jul 11, 2020
State of JDim-v0.3.0+ automation moved this from In progress to Done Jul 11, 2020
@ma8ma ma8ma deleted the fix-integer-overflow branch July 11, 2020 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug バグの追跡
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant