Commit 6f71f07
Use checked tag->slot conversion in direct streaming path
The direct (non-Managed) streaming path cast runbook tag IDs (usize) to
u32 provider slot IDs with `as u32`, silently truncating on overflow and
corrupting the ID mapping. Convert with a checked `u32::try_from` that
errors on overflow, matching the inmem streaming path's behavior.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 74602942-339e-45b2-a3b8-18636427763a1 parent 8c97fe4 commit 6f71f07
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
226 | 237 | | |
227 | 238 | | |
228 | 239 | | |
229 | | - | |
| 240 | + | |
230 | 241 | | |
231 | 242 | | |
232 | 243 | | |
| |||
274 | 285 | | |
275 | 286 | | |
276 | 287 | | |
277 | | - | |
| 288 | + | |
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
282 | 293 | | |
283 | 294 | | |
284 | 295 | | |
285 | | - | |
| 296 | + | |
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | | - | |
| 301 | + | |
291 | 302 | | |
292 | 303 | | |
293 | 304 | | |
| |||
0 commit comments