8000 replay: fix potential timestamp parsing error in Route::load by deanlee · Pull Request #35117 · commaai/openpilot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

replay: fix potential timestamp parsing error in Route::load #35117

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

Merged
merged 1 commit into from
May 4, 2025

Conversation

deanlee
Copy link
Contributor
@deanlee deanlee commented May 4, 2025

Improves the robustness of timestamp parsing in the Route::load() by adding a conditional check for the success of strptime. Previously, the code assumed that strptime would always succeed, which could lead to undefined behavior if the timestamp format was invalid or parsing failed.

@github-actions github-actions bot added the tools label May 4, 2025
@adeebshihadeh adeebshihadeh merged commit 8c8b2c4 into commaai:master May 4, 2025
16 checks passed
@adeebshihadeh
Copy link
Contributor

Welcome back ❤️

@deanlee deanlee deleted the replay_check_time_format branch May 4, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0