Commit be39787
committed
stress-branch: initialize branch_jmps to zero
When branch_jmps is not initialized shift ends up being a garbage
value which can then make idx garbage when an undefined shift size
occurs causing a SIGSEGV when indexing into the counts array. Fix
this by initializing branch_jmps to zero.
Fixes: 082483d ("stress-branch: add --branch-jumps option and double branch targets")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>1 parent 0dd1817 commit be39787
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
0 commit comments