Skip to content
  1. Apr 28, 2022
  2. Apr 26, 2022
  3. Apr 25, 2022
  4. Apr 22, 2022
  5. Apr 21, 2022
  6. Apr 20, 2022
  7. Apr 19, 2022
    • Noel Gordon's avatar
      [zlib_bench] Add compressed data integrity --check option · be2c3787
      Noel Gordon authored
      If --check option is given, compress the input file. Report the length
      of the compresssed data, and the crc32 of the compressed data.
      
      For the GZIP and ZLIB DEFLATE stream types, also report the data those
      stream types [1] store at the end of the compressed data.
      
      Add the --check option to program usage message. Also change the usage
      message to always report the zlib verion number.
      
      [1] See RFC-1952 GZIP, RFC 1950 ZLIB.
      
      Bug: 798943,1316541
      Change-Id: Id9d5a918b3ae142077d654f82ca6c9bd40762cfe
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3591994
      
      
      Auto-Submit: Noel Gordon <noel@chromium.org>
      Reviewed-by: default avatarAdenilson Cavalcanti <cavalcantii@chromium.org>
      Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#993581}
      NOKEYCHECK=True
      GitOrigin-RevId: ce61cdae957433ff9955863b07826f0d6fdc9f3c
      be2c3787
  8. Apr 11, 2022
  9. Apr 07, 2022
  10. Apr 06, 2022
  11. Apr 04, 2022
  12. Apr 02, 2022
  13. Apr 01, 2022
  14. Mar 31, 2022
    • Adenilson Cavalcanti's avatar
      [zlib] Re-sync with zlib 1.2.12, patch 4 of N · 9f769545
      Adenilson Cavalcanti authored
      Ported:
      - Small speedup to inflate [psumbera]
      
      It seems to be around +1% improvement in decompression:
      adenilson@Adenilsons-Air tot % ./zlib_bench gzip ~/corpus/flex/*
      /Users/adenilson/corpus/flex/baddata1.snappy :
      GZIP: [b 1M] bytes  27512 ->  22920 83.31% comp  66.8 ( 67.1) MB/s uncomp 234.0 (235.6) MB/s
      /Users/adenilson/corpus/flex/geo.protodata :
      GZIP: [b 1M] bytes 118588 ->  15124 12.75% comp 154.4 (154.7) MB/s uncomp 1310.5 (1311.6) MB/s
      /Users/adenilson/corpus/flex/html_x_4    :
      GZIP: [b 1M] bytes 409600 ->  53285 13.01% comp 107.2 (107.4) MB/s uncomp 1174.3 (1179.1) MB/s
      /Users/adenilson/corpus/js-data.txt      :
      GZIP: [b 1M] bytes 122903539 -> 37369556 30.41% comp  46.1 ( 46.1) MB/s uncomp 562.6 (563.2) MB/s
      /Users/adenilson/corpus/linux-5.6-rc3.tar :
      GZIP: [b 1M] bytes 957450240 -> 180809431 18.88% comp  61.1 ( 61.5) MB/s uncomp 738.0 (747.2) MB/s
      
      adenilson@Adenilsons-Air psumbera % ./zlib_bench gzip ~/corpus/flex/*
      /Users/adenilson/corpus/flex/baddata1.snappy :
      GZIP: [b 1M] bytes  27512 ->  22920 83.31% comp  66.0 ( 66.6) MB/s uncomp 236.7 (239.2) MB/s
      /Users/adenilson/corpus/flex/geo.protodata :
      GZIP: [b 1M] bytes 118588 ->  15124 12.75% comp 154.6 (154.8) MB/s uncomp 1322.3 (1328.8) MB/s
      /Users/adenilson/corpus/flex/html_x_4    :
      GZIP: [b 1M] bytes 409600 ->  53285 13.01% comp 107.3 (107.5) MB/s uncomp 1185.4 (1187.1) MB/s
      /Users/adenilson/corpus/js-data.txt      :
      GZIP: [b 1M] bytes 122903539 -> 37369556 30.41% comp  46.0 ( 46.1) MB/s uncomp 565.4 (566.0) MB/s
      /Users/adenilson/corpus/linux-5.6-rc3.tar :
      GZIP: [b 1M] bytes 957450240 -> 180809431 18.88% comp  61.5 ( 62.1) MB/s uncomp 749.9 (836.4) MB/s
      
      Bug: 1032721
      Change-Id: Iabf6f5c5cc94a4e8219c22831246cd353ddc7d23
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3563969
      
      
      Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
      Commit-Queue: Noel Gordon <noel@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#987687}
      NOKEYCHECK=True
      GitOrigin-RevId: 0eadcbc195a56d05635dd35feb4ee4cd72abe161
      9f769545
    • Adenilson Cavalcanti's avatar
      [zlib] Re-sync with zlib 1.2.12, patch 3 of N · f0c1d660
      Adenilson Cavalcanti authored
      Ported:
      - Avoid some conversion warnings in gzread.c and gzwrite.c
      - Update use of errno for newer Windows CE versions
      - Return an error if the gzputs string length can't fit in an int
      
      Bug: 1032721
      Change-Id: I84189ebed1bca346b37221b3325249f14fd2d4c2
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3562224
      
      
      Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
      Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#987459}
      NOKEYCHECK=True
      GitOrigin-RevId: 89fbba72b6026853d33b661d9c0c9c67f2dc57be
      f0c1d660
    • Adenilson Cavalcanti's avatar
      [zlib] Re-sync with zlib 1.2.12, patch 2 of N · ba2a303b
      Adenilson Cavalcanti authored
      Ported:
      - Fix bug when window full in deflate_stored()
      - Fix CLEAR_HASH macro to be usable as a single statement
      - Avoid a conversion error in gzseek when off_t type too small
      
      Bug: 1032721
      Change-Id: I0f023f57affbd7ad4d163823f43cfbe51f770129
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3561506
      
      
      Reviewed-by: default avatarAdenilson Cavalcanti <cavalcantii@chromium.org>
      Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
      Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#987297}
      NOKEYCHECK=True
      GitOrigin-RevId: f0e9b945d0c9d5bb8d31b044326fd646aa7f53d8
      ba2a303b
  15. Mar 30, 2022
  16. Mar 29, 2022
  17. Mar 28, 2022
  18. Mar 24, 2022
    • François Degros's avatar
      [zip] Normalize paths · 79008d28
      François Degros authored
      When reading and extracting ZIP archives, ZipReader normalizes file
      paths.
      
      An absolute path (starting with "/") is normalized as a relative path
      starting with "ROOT".
      
      Components ".." in the path are replaced with "UP".
      
      Components "." in the path are replaced with "DOT".
      
      Duplicated path separators "/" are collapsed.
      
      Characters that are not valid in Windows file names are replaced with
      the replacement character U+FFFD �. This replacement is done even on
      POSIX systems where these characters are valid.
      
      BUG=chromium:953256
      TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests
      
      Change-Id: I5062e0c58afaeec1b4e858eedda97e35d83316b1
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3538040
      
      
      Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
      Commit-Queue: François Degros <fdegros@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#984716}
      NOKEYCHECK=True
      GitOrigin-RevId: 6c8cfa89be66657653711acdb144149340ab14c8
      79008d28
  19. Mar 23, 2022
  20. Mar 21, 2022
  21. Mar 18, 2022
  22. Mar 17, 2022
    • François Degros's avatar
      [zip] Unzip() does not overwrite files anymore · 923f5eb4
      François Degros authored
      Changed the way FilePathWriterDelegate creates a new file, by using
      FLAG_CREATE instead of FLAG_CREATE_ALWAYS.
      
      This prevents FilePathWriterDelegate and zip::Unzip() from overwriting
      any existing file. This allows the detection of duplicated or
      conflicting file names when extracting a ZIP archive. See
      ZipTest.UnzipRepeatedFileName.
      
      This fixes a confusing corner case on case-insensitive file systems,
      which could result in file contents not matching file names as stored in
      the ZIP archive. See ZipTest.UnzipDifferentCases.
      
      BUG=chromium:953256
      TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests
      
      Change-Id: I6cf80e6d8b9e39ffc76739c00cb6f2ecf57da88f
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3529591
      
      
      Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
      Commit-Queue: François Degros <fdegros@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#982048}
      NOKEYCHECK=True
      GitOrigin-RevId: 7ba6004ba3727e9f5339841cfe0f54e7e51dfbf2
      923f5eb4
  23. Mar 16, 2022
    • François Degros's avatar
      [zip] Add log messages and unit tests · fbff51a8
      François Degros authored
      Added tests to zlib_unittests asserting the current behavior of
      zip::Unzip():
      
      ZipTest.UnzipCannotCreateEmptyDir
      ZipTest.UnzipCannotCreateParentDir
      ZipTest.UnzipDifferentCases
      ZipTest.UnzipNoSuchFile
      ZipTest.UnzipRepeatedDirName
      ZipTest.UnzipRepeatedFileName
      ZipTest.UnzipWindowsSpecialNames
      
      BUG=chromium:953256
      TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests
      
      Change-Id: I26e7741083c03ffa33f820c797f78124c26f72dc
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3526296
      
      
      Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
      Commit-Queue: François Degros <fdegros@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#981912}
      NOKEYCHECK=True
      GitOrigin-RevId: 1e46eed217294f71b6b79682767e9bfa93a4ddfc
      fbff51a8
  24. Mar 14, 2022
  25. Mar 09, 2022
    • François Degros's avatar
      [zip] Change one of FileWriterDelegate's constructor · 85bdd640
      François Degros authored
      No functional change. Optimization only.
      
      Changed the constructor of FileWriterDelegate that takes ownership of
      the File. It now moves the passed File by value rather than by
      unique_ptr. This avoid one extra level of indirection, and dynamic
      memory allocation.
      
      BUG=None
      TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests
      TEST=autoninja -C out/Default components_unittests && out/Default/components_unittests --gtest_filter='UnzipTest.*'
      
      Change-Id: Idca9b1836189d20fca10681fcb4d00c6d392eae4
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3511609
      
      
      Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
      Commit-Queue: François Degros <fdegros@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#979053}
      NOKEYCHECK=True
      GitOrigin-RevId: d915951cf63c82c7bf5ed6250c3799660cb81280
      85bdd640
  26. Mar 04, 2022
  27. Mar 01, 2022
  28. Feb 25, 2022
Loading