Commit f425004
committed
igo_nr: validate config blob size before copy
A new configuration blob was copied into the component state as a
fixed-size structure without checking the blob was large enough, reading
past the allocation for a short blob. Request the blob size and reject
one smaller than the configuration structure.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 431e0c3 commit f425004
1 file changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
723 | 725 | | |
724 | 726 | | |
725 | 727 | | |
726 | | - | |
727 | 728 | | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
732 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
733 | 748 | | |
734 | 749 | | |
735 | 750 | | |
| |||
0 commit comments