gdbm: update to 1.16.

This commit is contained in:
maxice8 2018-06-21 12:06:12 -03:00
parent f15f6c5191
commit f309f140ec
3 changed files with 4 additions and 33 deletions

View File

@ -175,7 +175,7 @@ libxfconf-0.so.2 xfconf-4.9.1_1
libxfce4util.so.7 libxfce4util-4.12.1_1 libxfce4util.so.7 libxfce4util-4.12.1_1
libxfce4panel-1.0.so.4 xfce4-panel-4.9.2_1 libxfce4panel-1.0.so.4 xfce4-panel-4.9.2_1
libxfce4panel-2.0.so.4 xfce4-panel-4.12.0_1 libxfce4panel-2.0.so.4 xfce4-panel-4.12.0_1
libgdbm.so.5 gdbm-1.14_1_1 libgdbm.so.6 gdbm-1.16_1
libgdbm_compat.so.4 gdbm-1.10_1_1 libgdbm_compat.so.4 gdbm-1.10_1_1
libintl.so.8 gettext-libs-0.19.2_1 libintl.so.8 gettext-libs-0.19.2_1
libgnuintl.so.8 gettext-libs-0.19.2_1 libgnuintl.so.8 gettext-libs-0.19.2_1

View File

@ -1,29 +0,0 @@
# Prevent gdbm from storing uninitialized memory content
# to database files. This patch improves security, as the
# uninitialized memory might contain sensitive informations
# from other applications.
# https://bugzilla.redhat.com/show_bug.cgi?id=4457
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
--- src/falloc.c.orig 2017-03-14 07:13:25.976990206 +0000
+++ src/falloc.c 2017-03-14 07:17:27.833002683 +0000
@@ -278,7 +278,7 @@
/* Split the header block. */
temp = GDBM_DEBUG_ALLOC ("push_avail_block:malloc-failure",
- malloc (av_size));
+ calloc (1, av_size));
if (temp == NULL)
{
GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE);
--- src/gdbmopen.c.orig 2017-03-14 07:23:52.954022551 +0000
+++ src/gdbmopen.c 2017-03-14 07:26:31.950030754 +0000
@@ -529,7 +529,7 @@
{
(dbf->bucket_cache[index]).ca_bucket =
GDBM_DEBUG_ALLOC ("_gdbm_init_cache:bucket-malloc-failure",
- malloc (dbf->header->bucket_size));
+ calloc (1, dbf->header->bucket_size));
if ((dbf->bucket_cache[index]).ca_bucket == NULL)
{
GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE);

View File

@ -1,6 +1,6 @@
# Template file for 'gdbm' # Template file for 'gdbm'
pkgname=gdbm pkgname=gdbm
version=1.14.1 version=1.16
revision=1 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-libgdbm-compat --disable-rpath" configure_args="--enable-libgdbm-compat --disable-rpath"
@ -8,8 +8,8 @@ short_desc="GNU database routines"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
homepage="http://www.gnu.org.ua/software/gdbm/" homepage="http://www.gnu.org.ua/software/gdbm/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz" distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=cdceff00ffe014495bed3aed71c7910aa88bf29379f795abc0f46d4ee5f8bc5f checksum=c8a18bc6259da0c3eefefb018f8aa298fddc6f86c6fc0f0dec73270896ab512f
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake gettext-devel" hostmakedepends="libtool automake gettext-devel"