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

cabana/chart: fix value overflow #29924

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Sep 15, 2023

resolve https://github.com/commaai/openpilot/discussions/26091#discussioncomment-7011546:

Issue: qFloor, qCeil returns int only. it will overflow if the return value is big than int. https://doc.qt.io/qt-6/qtmath.html#qFloor

268228081-409b634d-684b-4d1a-9578-bedaa1a3ad3e

268227923-64cb9751-6096-4f78-a045-622018d9ce9d

Fix: replace qt math functions with cmath.

@github-actions github-actions bot added the tools label Sep 15, 2023
@sshane sshane merged commit 6a72d53 into commaai:master Sep 15, 2023
@sshane sshane added the bugfix label Sep 15, 2023
@deanlee deanlee deleted the chart_fix_large_value_issue branch September 15, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants