transceiver: Fix out-of-bounds acces in genRandNormalBurst().
We should read gTrainingSequence starting from 0 bit index, not 61 bit index. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
This commit is contained in:
parent
f5fd578d60
commit
2966048b07
|
@ -87,8 +87,8 @@ static BitVector *genRandNormalBurst(size_t tsc)
|
|||
(*bits)[i] = rand() % 2;
|
||||
|
||||
/* Training sequence */
|
||||
for (; i < 87; i++)
|
||||
(*bits)[i] = GSM::gTrainingSequence[tsc][i];
|
||||
for (int j = 0; i < 87; i++, j++)
|
||||
(*bits)[i] = GSM::gTrainingSequence[tsc][j];
|
||||
|
||||
/* Random bits */
|
||||
for (; i < 144; i++)
|
||||
|
|
Loading…
Reference in New Issue