Diff between 0a018b2d1a88813d528e1a9039ad07ec24da4a62 and 8514068150759c1d6a46d4605d2351babfde1601
Changed Files
| File | Additions | Deletions | Status |
| tools/csr.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/csr.c b/tools/csr.c
index 2c09189..15ae7c4 100644
--- a/tools/csr.c
+++ b/tools/csr.c
@@ -2756,7 +2756,7 @@ static int parse_line(char *str)
off++;
- while (1) {
+ while (length <= sizeof(array) - 2) {
value = strtol(off, &end, 16);
if (value == 0 && off == end)
break;