From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 From: Aleksei Nikiforov To: devel@lists.altlinux.org Date: Thu, 12 Dec 2019 12:57:09 +0300 Message-Id: <20191212095730.83787-1-darktemplar@altlinux.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211234857.GB17949@altlinux.org> References: <20191211234857.GB17949@altlinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Aleksei Nikiforov Subject: [devel] [PATCH for apt v2 00/21] Various fixes for Apt and basic integration test suite X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 09:58:09 -0000 Archived-At: List-Archive: List-Post: 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