Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/zlib/contrib/minizip/unzip.c

Issue 2043063002: DO NOT COMMIT - Unrelated changes made by run-clang-tidy.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_WE998_allwin
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* unzip.c -- IO for uncompress .zip files using zlib 1 /* unzip.c -- IO for uncompress .zip files using zlib
2 Version 1.1, February 14h, 2010 2 Version 1.1, February 14h, 2010
3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
4 4
5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage. com/zLibDll/minizip.html ) 5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage. com/zLibDll/minizip.html )
6 6
7 Modifications of Unzip for Zip64 7 Modifications of Unzip for Zip64
8 Copyright (C) 2007-2008 Even Rouault 8 Copyright (C) 2007-2008 Even Rouault
9 9
10 Modifications for Zip64 support on both zip and unzip 10 Modifications for Zip64 support on both zip and unzip
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 file_in_zip64_read_info_s* pfile_in_zip_read_info; 1689 file_in_zip64_read_info_s* pfile_in_zip_read_info;
1690 if (file==NULL) 1690 if (file==NULL)
1691 return UNZ_PARAMERROR; 1691 return UNZ_PARAMERROR;
1692 s=(unz64_s*)file; 1692 s=(unz64_s*)file;
1693 pfile_in_zip_read_info=s->pfile_in_zip_read; 1693 pfile_in_zip_read_info=s->pfile_in_zip_read;
1694 1694
1695 if (pfile_in_zip_read_info==NULL) 1695 if (pfile_in_zip_read_info==NULL)
1696 return UNZ_PARAMERROR; 1696 return UNZ_PARAMERROR;
1697 1697
1698 1698
1699 if ((pfile_in_zip_read_info->read_buffer == NULL)) 1699 if (pfile_in_zip_read_info->read_buffer = NULL)
etienneb 2016/06/07 16:14:30 I really don't get this change. This will always b
1700 return UNZ_END_OF_LIST_OF_FILE; 1700 return UNZ_END_OF_LIST_OF_FILE;
1701 if (len==0) 1701 if (len==0)
1702 return 0; 1702 return 0;
1703 1703
1704 pfile_in_zip_read_info->stream.next_out = (Bytef*)buf; 1704 pfile_in_zip_read_info->stream.next_out = (Bytef*)buf;
1705 1705
1706 pfile_in_zip_read_info->stream.avail_out = (uInt)len; 1706 pfile_in_zip_read_info->stream.avail_out = (uInt)len;
1707 1707
1708 if ((len>pfile_in_zip_read_info->rest_read_compressed+ 1708 if ((len>pfile_in_zip_read_info->rest_read_compressed+
1709 pfile_in_zip_read_info->stream.avail_in) && 1709 pfile_in_zip_read_info->stream.avail_in) &&
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 &s->cur_file_info_internal, 2111 &s->cur_file_info_internal,
2112 NULL,0,NULL,0,NULL,0); 2112 NULL,0,NULL,0,NULL,0);
2113 s->current_file_ok = (err == UNZ_OK); 2113 s->current_file_ok = (err == UNZ_OK);
2114 return err; 2114 return err;
2115 } 2115 }
2116 2116
2117 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos) 2117 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos)
2118 { 2118 {
2119 return unzSetOffset64(file,pos); 2119 return unzSetOffset64(file,pos);
2120 } 2120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698