Show More
@@ -248,7 +248,8 b' int mpatch_apply(char *buf, const char *' | |||||
248 | char *p = buf; |
|
248 | char *p = buf; | |
249 |
|
249 | |||
250 | while (f != l->tail) { |
|
250 | while (f != l->tail) { | |
251 |
if (f->start < last || f->end > len || |
|
251 | if (f->start < last || f->start > len || f->end > len || | |
|
252 | last < 0) { | |||
252 | return MPATCH_ERR_INVALID_PATCH; |
|
253 | return MPATCH_ERR_INVALID_PATCH; | |
253 | } |
|
254 | } | |
254 | memcpy(p, orig + last, f->start - last); |
|
255 | memcpy(p, orig + last, f->start - last); |
General Comments 0
You need to be logged in to leave comments.
Login now