You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated simulation step, heat map and animation stats index past arrays for out-of-range counts #412
Three more generated functions index past their array for an out-of-range count. Same class as #410, found while fixing it; they were not listed there, so #411 leaves them alone.
Reproduced on fix/bounds-410 (da49268, PR #411) with Rust 1.96.0, by calling the generated gen/rust modules directly:
Function
Input
Result
network_simulator::run_simulation_step
event_count = 129
index out of bounds (MAX_EVENTS = 128)
traffic_animator::generate_traffic_heat_map
packet_count = 65
index out of bounds (MAX_PACKETS = 64)
traffic_animator::calculate_animation_stats
frame_count = 1201
index out of bounds (MAX_FRAMES = 1200)
generate_traffic_animation passes its count to generate_traffic_heat_map, so it inherits the hazard.
Boundary:
The fix goes in specs/network_simulator.t27 and specs/traffic_animator.t27, with the pinned t27c regeneration of all three backends. Generated files are not edited by hand.
Activity