• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/cracklib/0002-Fix-a-buffer-overflow-processing-long-words.patch
Stefan SørensenStefan Sørensen committed d4718319b7305 May 2017
Raw file
Source viewDiff to previous
 
1
From 33d7fa4585247cd2247a1ffa032ad245836c6edb Mon Sep 17 00:00:00 2001
2
From: Jan Dittberner <jan@dittberner.info>
3
Date: Thu, 25 Aug 2016 17:17:53 +0200
4
Subject: [PATCH] Fix a buffer overflow processing long words
5
​
6
A buffer overflow processing long words has been discovered. This commit
7
applies the patch from
8
https://build.opensuse.org/package/view_file/Base:System/cracklib/0004-overflow-processing-long-words.patch
9
by Howard Guo.
10
​
11
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835386 and
12
http://www.openwall.com/lists/oss-security/2016/08/23/8
13
​
14
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
15
---
16
​
17
Status: upstream, not yet released.
18
​
19
 lib/rules.c | 5 ++---
20
 2 files changed, 3 insertions(+), 3 deletions(-)
21
​
22
diff --git a/lib/rules.c b/lib/rules.c
23
index d193cc0..3a2aa46 100644
24
--- a/lib/rules.c
25
+++ b/lib/rules.c
26
@@ -434,9 +434,8 @@ Mangle(input, control)      /* returns a pointer to a controlled Mangle */
27
 {
28
     int limit;
29
     register char *ptr;
30
-    static char area[STRINGSIZE];
31
-    char area2[STRINGSIZE];
32
-    area[0] = '\0';
33
+    static char area[STRINGSIZE * 2] = {0};
34
+    char area2[STRINGSIZE * 2] = {0};
35
     strcpy(area, input);
36
 
37
     for (ptr = control; *ptr; ptr++)
38
-- 
39
2.9.3
40
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.