File: CVE-2011-2483.patch

package info (click to toggle)
libxcrypt 1%3A2.4-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,672 kB
  • sloc: sh: 8,666; ansic: 2,905; makefile: 96
file content (11 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/crypt_blowfish.c
+++ b/src/crypt_blowfish.c
@@ -554,7 +554,7 @@
 		tmp = 0;
 		for (j = 0; j < 4; j++) {
 			tmp <<= 8;
-			tmp |= *ptr;
+			tmp |= (unsigned char)*ptr;
 
 			if (!*ptr) ptr = key; else ptr++;
 		}