mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Correct range of loop for size of input data.
This commit is contained in:
@@ -114,7 +114,7 @@ bool CRS241213::decode(unsigned char* data)
|
|||||||
S[i] = HB[0];
|
S[i] = HB[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 1; j <= 62; j++) {
|
for (j = 1; j <= 23; j++) { // XXX was 62
|
||||||
for (i = 0; i <= nroots - 1; i++) {
|
for (i = 0; i <= nroots - 1; i++) {
|
||||||
if (S[i] == 0) {
|
if (S[i] == 0) {
|
||||||
S[i] = HB[j];
|
S[i] = HB[j];
|
||||||
|
|||||||
Reference in New Issue
Block a user