Commit 3813b1b
committed
Add defensive NULL checks for node inputs
This guards against NULL pointer dereferences in the processing loop:
- picosynth_process() returns 0 for NULL synth pointer
- Oscillator skips freq increment when freq pointer is NULL
- HP filter outputs 0 when input pointer is NULL
- Filter accumulator update uses 0 for NULL input1 parent 5e0cb49 commit 3813b1b
2 files changed
+44
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| |||
518 | 521 | | |
519 | 522 | | |
520 | 523 | | |
521 | | - | |
522 | | - | |
523 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
| |||
550 | 558 | | |
551 | 559 | | |
552 | 560 | | |
553 | | - | |
| 561 | + | |
| 562 | + | |
554 | 563 | | |
555 | 564 | | |
556 | 565 | | |
| |||
631 | 640 | | |
632 | 641 | | |
633 | 642 | | |
634 | | - | |
| 643 | + | |
| 644 | + | |
635 | 645 | | |
636 | 646 | | |
637 | 647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
313 | 341 | | |
314 | 342 | | |
315 | 343 | | |
| |||
342 | 370 | | |
343 | 371 | | |
344 | 372 | | |
| 373 | + | |
345 | 374 | | |
346 | 375 | | |
0 commit comments