[devel] [PATCH for apt v2 00/21] Various fixes for Apt and basic integration test suite

Aleksei Nikiforov darktemplar на altlinux.org
Чт Дек 12 12:57:09 MSK 2019


This patch series updates patches 1-21 from 38 patches,
mostly by updating commit messages.

Remaining 17 patches are still relevant,
I'm just skipping resending them since they're unchanged.

Aleksei Nikiforov (21):
  Replace post-increments with pre-increments
  Use correct types and type specifiers
  Fix potential memory corruption in pkgCache::DepIterator::AllTargets()
  Get rid of nullptr dereference
  Fix memory access outside of allocated buffer ranges
  Get rid of hardcoded array size
  Use signed types to detect IO errors
  Use 'explicit' keyword for constructors with one argument
  Rework identical conditions
  Improve member variable initialization
  Remove useless variable shadowing
  Fortify against buffer overflows
  Cacheiterators: sanitize increment operators and end() function
  Fix memory leaks
  Fix incorrect delete operator
  Don't access uninitialized data
  Fix access after free error
  Apt-pipe: ensure mainloop function doesn't return uninitialized or
    garbage value
  Don't use uninitialized value
  Get rid of dangling invalid pointer
  Fix invalid check of Queue against zero

 apt/apt-pkg/acquire-item.cc          |  4 +-
 apt/apt-pkg/acquire-method.cc        |  4 +-
 apt/apt-pkg/algorithms.cc            |  5 ++-
 apt/apt-pkg/cacheiterators.h         | 22 +++++------
 apt/apt-pkg/contrib/cdromutl.cc      |  4 +-
 apt/apt-pkg/contrib/configuration.cc |  4 +-
 apt/apt-pkg/contrib/strutl.cc        | 10 ++---
 apt/apt-pkg/init.cc                  |  2 +-
 apt/apt-pkg/orderlist.cc             |  8 ++--
 apt/apt-pkg/packagemanager.cc        | 12 +++---
 apt/apt-pkg/pkgcache.cc              | 48 ++++++++++++++++--------
 apt/apt-pkg/pkgcachegen.cc           |  8 ++--
 apt/apt-pkg/policy.cc                |  6 +--
 apt/apt-pkg/rpm/rpmindexfile.cc      |  2 +-
 apt/apt-pkg/rpm/rpmpackagedata.cc    | 16 ++++----
 apt/apt-pkg/rpm/rpmpm.cc             |  8 ++--
 apt/apt-pkg/sourcelist.cc            | 22 +++++------
 apt/apt-pkg/srcrecords.cc            |  6 +--
 apt/apt-pkg/versionmatch.cc          |  2 +-
 apt/cmdline/acqprogress.cc           |  4 +-
 apt/cmdline/apt-cache.cc             | 20 ++++++----
 apt/cmdline/apt-cdrom.cc             | 24 ++++++------
 apt/cmdline/apt-get.cc               | 44 +++++++++++++---------
 apt/cmdline/apt-pipe.c               |  7 +++-
 apt/cmdline/apt-shell.cc             | 56 ++++++++++++++++++----------
 apt/cmdline/indexcopy.cc             |  4 +-
 apt/cmdline/rpmindexcopy.cc          |  8 ++--
 apt/methods/connect.cc               |  4 +-
 apt/methods/ftp.cc                   |  2 +-
 apt/methods/ftp.h                    |  2 +-
 apt/methods/gzip.cc                  |  2 +-
 apt/methods/http.cc                  | 51 +++++++++++++------------
 apt/methods/http.h                   |  9 +++--
 apt/methods/rsh.h                    |  2 +-
 apt/methods/rsync-method.h           |  5 ++-
 apt/methods/rsync.cc                 | 35 +++++++----------
 apt/tools/genpkglist.cc              | 12 +++---
 apt/tools/gensrclist.cc              | 13 +++----
 38 files changed, 277 insertions(+), 220 deletions(-)

-- 
2.24.1



Подробная информация о списке рассылки Devel