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

Fixed segfault in draw_routing_costs #2865

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

AmirhosseinPoolad
Copy link
Contributor

We didn't allocate any space for the 'rr_node_costs' vector and accessed it directly using operator[], resulting in segfaults. This commit fixes the crash by preallocating all the needed space before any accesses.

Related Issue

#2373

We didn't allocate any space for the 'rr_node_costs' vector and accessed it
directly using operator[], resulting in segfaults. This commit fixes the
crash by preallocating all the needed space before any accesses.
@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Jan 16, 2025
@vaughnbetz
Copy link
Contributor

Thanks!

@vaughnbetz vaughnbetz merged commit b8c1ef1 into master Jan 17, 2025
37 checks passed
@vaughnbetz vaughnbetz deleted the routing_graphics_toggle_segfault branch January 17, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants