[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:44:42 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 498093c686cd5437fd86b1e811bd99a4668b17e4
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Sep 25 20:25:23 2002 +0000

    	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
    
            * kjs/simple_number.h: Fix incorrect check for sign bit that was munging numbers
    	in the range 0x10000000 to 0x1FFFFFFF.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2167 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 74c16bf..2d5d847 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,10 @@
+2002-09-25  Darin Adler  <darin at apple.com>
+
+	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
+
+        * kjs/simple_number.h: Fix incorrect check for sign bit that was munging numbers
+	in the range 0x10000000 to 0x1FFFFFFF.
+
 === Alexander-24 ===
 
 === Alexander-22 ===
diff --git a/JavaScriptCore/ChangeLog-2002-12-03 b/JavaScriptCore/ChangeLog-2002-12-03
index 74c16bf..2d5d847 100644
--- a/JavaScriptCore/ChangeLog-2002-12-03
+++ b/JavaScriptCore/ChangeLog-2002-12-03
@@ -1,3 +1,10 @@
+2002-09-25  Darin Adler  <darin at apple.com>
+
+	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
+
+        * kjs/simple_number.h: Fix incorrect check for sign bit that was munging numbers
+	in the range 0x10000000 to 0x1FFFFFFF.
+
 === Alexander-24 ===
 
 === Alexander-22 ===
diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25
index 74c16bf..2d5d847 100644
--- a/JavaScriptCore/ChangeLog-2003-10-25
+++ b/JavaScriptCore/ChangeLog-2003-10-25
@@ -1,3 +1,10 @@
+2002-09-25  Darin Adler  <darin at apple.com>
+
+	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
+
+        * kjs/simple_number.h: Fix incorrect check for sign bit that was munging numbers
+	in the range 0x10000000 to 0x1FFFFFFF.
+
 === Alexander-24 ===
 
 === Alexander-22 ===
diff --git a/JavaScriptCore/kjs/simple_number.h b/JavaScriptCore/kjs/simple_number.h
index 2dda17b..abdb2e7 100644
--- a/JavaScriptCore/kjs/simple_number.h
+++ b/JavaScriptCore/kjs/simple_number.h
@@ -31,10 +31,10 @@ namespace KJS {
 
     class SimpleNumber {
     public:
-	enum { tag = 1, shift = 2, mask = (1 << shift) - 1, max = (1 << (31 - shift)) - 1, min = -max - 1 };
+	enum { tag = 1, shift = 2, mask = (1 << shift) - 1, sign = 1 << 31, max = (1 << (31 - shift)) - 1, min = -max - 1 };
 
 	static inline bool is(const ValueImp *imp) { return ((int)imp & mask) == tag; }
-	static inline int value(const ValueImp *imp) { return ((int)imp >> shift) | (((int)imp & min) ? ~max : 0); }
+	static inline int value(const ValueImp *imp) { return ((int)imp >> shift) | (((int)imp & sign) ? ~max : 0); }
 
 	static inline bool fits(int i) { return i <= max && i >= min; }
 	static inline bool fits(unsigned i) { return i <= (unsigned)max; }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list