Commit e0629bc
[pentest] Fix fw override rng
Fix the fi rng test of using fw override. The test would only work more
than once in case the device is reset in between. Instead, we
re-initialize the fw override every call (we would like consecutive bits
so we stop the fifo after every call).
There was also a bug causing stack overflow by asking for bits in a for
loop whereas the full buffer was filled in a single loop.
Signed-off-by: Siemen Dhooghe <[email protected]>
(cherry picked from commit 7f48129)1 parent 5e16bb5 commit e0629bc
File tree
2 files changed
+24
-31
lines changed- sw
- device/tests/penetrationtests/firmware/fi
- host/penetrationtests/python/fi/host_scripts
2 files changed
+24
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
219 | 216 | | |
220 | 217 | | |
221 | 218 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 219 | + | |
| 220 | + | |
230 | 221 | | |
| 222 | + | |
231 | 223 | | |
232 | 224 | | |
233 | | - | |
| 225 | + | |
234 | 226 | | |
235 | 227 | | |
236 | 228 | | |
237 | 229 | | |
| 230 | + | |
238 | 231 | | |
239 | 232 | | |
240 | 233 | | |
241 | 234 | | |
242 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 247 | + | |
| 248 | + | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
257 | 252 | | |
| 253 | + | |
| 254 | + | |
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
| |||
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | 434 | | |
441 | 435 | | |
442 | 436 | | |
| |||
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
0 commit comments