r49251 - in /packages/unstable/libpwquality/debian/patches: ./ Fix_possible_stack_overflow.patch series

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Sun Jul 3 15:08:24 UTC 2016


Author: biebl
Date: Sun Jul  3 15:08:24 2016
New Revision: 49251

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=49251
Log:
Actually add the patch

Followup fix for r49247

Added:
    packages/unstable/libpwquality/debian/patches/
    packages/unstable/libpwquality/debian/patches/Fix_possible_stack_overflow.patch
    packages/unstable/libpwquality/debian/patches/series

Added: packages/unstable/libpwquality/debian/patches/Fix_possible_stack_overflow.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/libpwquality/debian/patches/Fix_possible_stack_overflow.patch?rev=49251&op=file
==============================================================================
--- packages/unstable/libpwquality/debian/patches/Fix_possible_stack_overflow.patch	(added)
+++ packages/unstable/libpwquality/debian/patches/Fix_possible_stack_overflow.patch	[utf-8] Sun Jul  3 15:08:24 2016
@@ -0,0 +1,21 @@
+
+# HG changeset patch
+# User Tomas Mraz <tmraz at redhat.com>
+# Date 1440426008 -7200
+# Node ID a4696cd7cd246f6c34a2d2f1d54d569c5e7ecd84
+# Parent  bb4952bec17e830c751d99a85ae1de32e22cf659
+Fix possible stack overflow in pwquality_generate() with data from /dev/urandom.
+
+diff -r bb4952bec17e -r a4696cd7cd24 src/generate.c
+--- a/src/generate.c	Thu Jul 23 14:11:30 2015 +0200
++++ b/src/generate.c	Mon Aug 24 16:20:08 2015 +0200
+@@ -100,7 +100,7 @@
+ int
+ pwquality_generate(pwquality_settings_t *pwq, int entropy_bits, char **password)
+ {
+-        char entropy[PWQ_MAX_ENTROPY_BITS/8 + 1];
++        char entropy[(PWQ_MAX_ENTROPY_BITS+PWQ_MAX_ENTROPY_BITS/9)/8 + 2];
+         char *tmp;
+         int maxlen;
+         int try = 0;
+

Added: packages/unstable/libpwquality/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/libpwquality/debian/patches/series?rev=49251&op=file
==============================================================================
--- packages/unstable/libpwquality/debian/patches/series	(added)
+++ packages/unstable/libpwquality/debian/patches/series	[utf-8] Sun Jul  3 15:08:24 2016
@@ -0,0 +1 @@
+Fix_possible_stack_overflow.patch




More information about the pkg-gnome-commits mailing list