Commit 59f66cf
Add null checks to xnnpack flatbuffer (#18799)
Add null checks to the flatbuffer graph on:
- flatbuffer graph itself
- xnodes
- xvalues
Check that num_externs is <= num_values
Authored-with: Claude
Co-authored-by: Github Executorch <github_executorch@arm.com>1 parent 273aee9 commit 59f66cf
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1930 | 1936 | | |
1931 | 1937 | | |
1932 | 1938 | | |
| |||
1936 | 1942 | | |
1937 | 1943 | | |
1938 | 1944 | | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
1939 | 1954 | | |
1940 | 1955 | | |
1941 | | - | |
| 1956 | + | |
1942 | 1957 | | |
1943 | 1958 | | |
1944 | 1959 | | |
| |||
0 commit comments