Displaying 1 result from an estimated 1 matches for "buffer_pos".
Did you mean:
buffer_fns
2011 Nov 11
0
[PATCH 5/9] Decompressors: check for read errors in unlzma.c
...a.c
+++ b/xen/common/unlzma.c
@@ -625,6 +625,8 @@ STATIC int INIT unlzma(unsigned char *bu
if (cst.rep0 == 0)
break;
}
+ if (rc.buffer_size <= 0)
+ goto exit_3;
}
if (posp)
@@ -632,6 +634,7 @@ STATIC int INIT unlzma(unsigned char *bu
if (wr.flush)
wr.flush(wr.buffer, wr.buffer_pos);
ret = 0;
+exit_3:
large_free(p);
exit_2:
if (!output)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel