Show More
@@ -197,7 +197,9 b' int mpatch_decode(const char *bin, ssize' | |||||
197 |
|
197 | |||
198 | lt = l->tail; |
|
198 | lt = l->tail; | |
199 |
|
199 | |||
200 | while (pos >= 0 && pos < len) { |
|
200 | /* We check against len-11 to ensure we have at least 12 bytes | |
|
201 | left in the patch so we can read our three be32s out of it. */ | |||
|
202 | while (pos >= 0 && pos < (len - 11)) { | |||
201 | lt->start = getbe32(bin + pos); |
|
203 | lt->start = getbe32(bin + pos); | |
202 | lt->end = getbe32(bin + pos + 4); |
|
204 | lt->end = getbe32(bin + pos + 4); | |
203 | lt->len = getbe32(bin + pos + 8); |
|
205 | lt->len = getbe32(bin + pos + 8); |
General Comments 0
You need to be logged in to leave comments.
Login now