From: Glenn L McGrath Date: Fri, 21 Nov 2003 22:17:28 +0000 (-0000) Subject: Use safe read X-Git-Tag: 1_00_pre4~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a2d75fd7273e8de936e5fd91462bdff381f9b62;p=oweals%2Fbusybox.git Use safe read --- diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index 5046e8a26..65418a7ca 100644 --- a/archival/libunarchive/decompress_uncompress.c +++ b/archival/libunarchive/decompress_uncompress.c @@ -164,7 +164,7 @@ extern int uncompress(int fd_in, int fd_out) } if (insize < (int) sizeof(inbuf) - IBUFSIZ) { - rsize = read(fd_in, inbuf + insize, IBUFSIZ); + rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ); insize += rsize; } diff --git a/archival/libunarchive/uncompress.c b/archival/libunarchive/uncompress.c index 5046e8a26..65418a7ca 100644 --- a/archival/libunarchive/uncompress.c +++ b/archival/libunarchive/uncompress.c @@ -164,7 +164,7 @@ extern int uncompress(int fd_in, int fd_out) } if (insize < (int) sizeof(inbuf) - IBUFSIZ) { - rsize = read(fd_in, inbuf + insize, IBUFSIZ); + rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ); insize += rsize; }