[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 07:04:00 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ff56afa0589d2525c6a09500544a4dd8ec997ddb
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Nov 19 22:25:11 2002 +0000
- fixed memory trasher
* kjs/ustring.cpp: (UString::from): Fix "end of buffer" computation.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 2f2ed14..62cb872 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,5 +1,11 @@
2002-11-19 Darin Adler <darin at apple.com>
+ - fixed memory trasher
+
+ * kjs/ustring.cpp: (UString::from): Fix "end of buffer" computation.
+
+2002-11-19 Darin Adler <darin at apple.com>
+
- a first step towards atomic identifiers in JavaScript
Most places that work with identifiers now use Identifier
diff --git a/JavaScriptCore/ChangeLog-2002-12-03 b/JavaScriptCore/ChangeLog-2002-12-03
index 2f2ed14..62cb872 100644
--- a/JavaScriptCore/ChangeLog-2002-12-03
+++ b/JavaScriptCore/ChangeLog-2002-12-03
@@ -1,5 +1,11 @@
2002-11-19 Darin Adler <darin at apple.com>
+ - fixed memory trasher
+
+ * kjs/ustring.cpp: (UString::from): Fix "end of buffer" computation.
+
+2002-11-19 Darin Adler <darin at apple.com>
+
- a first step towards atomic identifiers in JavaScript
Most places that work with identifiers now use Identifier
diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25
index 2f2ed14..62cb872 100644
--- a/JavaScriptCore/ChangeLog-2003-10-25
+++ b/JavaScriptCore/ChangeLog-2003-10-25
@@ -1,5 +1,11 @@
2002-11-19 Darin Adler <darin at apple.com>
+ - fixed memory trasher
+
+ * kjs/ustring.cpp: (UString::from): Fix "end of buffer" computation.
+
+2002-11-19 Darin Adler <darin at apple.com>
+
- a first step towards atomic identifiers in JavaScript
Most places that work with identifiers now use Identifier
diff --git a/JavaScriptCore/kjs/ustring.cpp b/JavaScriptCore/kjs/ustring.cpp
index 30a9c56..e498eef 100644
--- a/JavaScriptCore/kjs/ustring.cpp
+++ b/JavaScriptCore/kjs/ustring.cpp
@@ -250,7 +250,8 @@ UString UString::from(int i)
UString UString::from(unsigned int u)
{
UChar buf[20];
- UChar *p = buf + sizeof(buf);
+ UChar *end = buf + 20;
+ UChar *p = end;
if (u == 0) {
*--p = '0';
@@ -261,13 +262,14 @@ UString UString::from(unsigned int u)
}
}
- return UString(p, buf + sizeof(buf) - p);
+ return UString(p, end - p);
}
UString UString::from(long l)
{
UChar buf[20];
- UChar *p = buf + sizeof(buf);
+ UChar *end = buf + 20;
+ UChar *p = end;
if (l == 0) {
*--p = '0';
@@ -290,7 +292,7 @@ UString UString::from(long l)
}
}
- return UString(p, buf + sizeof(buf) - p);
+ return UString(p, end - p);
}
UString UString::from(double d)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list