Repository navigation
Commit 20d278d
Jun Lai
audio: dax: fixes regarding the results of coverity check
Out-of-bounds access (ARRAY_VS_SINGLETON): atomic_*_bit functions use
ATOMIC_ELEM macro to retrieve element, which treats target pointer as
an array pointer. In dax.c, if bit > sizeof(uint32_t), it may return
an &proc_flags + 1 address , resulting in out-of-bounds access.
Signed-off-by: Jun Lai <junlai@dolby.com>1 parent 1df7dfb commit 20d278d
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments