875 Commits

Author SHA1 Message Date
jonas%sicking.cc
7c43d8395b Bug 526500: Fix out-of-memory handling in string code. r=bsmedberg a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259121 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-01 01:59:33 +00:00
dbaron%dbaron.org
e1c82bc6fb Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68). acid3++ r=dbaron a1.9.0.11=dveditz Patch from Jeff Walden <jwalden@mit.edu>.
git-svn-id: svn://10.0.0.236/trunk@257124 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 01:33:03 +00:00
benjamin%smedbergs.us
ed2352bfe7 Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@255922 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 17:07:45 +00:00
marco%gnome.org
56596e152e Ensure that nsString and nsString_external has the same size on all the
architectures. Fix #430581. r=benjamin a=samuel.sidler


git-svn-id: svn://10.0.0.236/trunk@253806 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-25 10:15:35 +00:00
dbaron%dbaron.org
bdac8fcd97 Fix -Wconversion warnings that prevent compiling netwerk/cookie/src/ (which makes warnings fatal) with gcc 4.3 on x86_64. b=409384 r=bsmedberg a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247255 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 23:03:50 +00:00
benjamin%smedbergs.us
497bc07cfe Bug 409384 - Firefox 3.0b2 fauks to compile with gcc 4.3, r=dwitte+dbaron a=damons
git-svn-id: svn://10.0.0.236/trunk@246569 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-26 22:44:42 +00:00
dwitte%stanford.edu
a8f5008a68 update copy_string() to the single-fragment string world, and optimize write() to not return a value. b=282083, r+sr=jst, a=schrep
git-svn-id: svn://10.0.0.236/trunk@242333 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-04 00:07:07 +00:00
benjamin%smedbergs.us
82fd81d81c Bug 396052 - Firefox fails to start when run from a directory with non-native characters, r=luser sr=neil
git-svn-id: svn://10.0.0.236/trunk@242214 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-31 15:15:46 +00:00
jst%mozilla.org
a417ea6aed Fixing bug 395651. Make our UTF-8 and UTF-16 comparison code etc more robust when dealing with invalid UTF-16 data. r+sr=jonas@sicking.cc, a=jst@mozilla.org/jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@236008 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-14 23:09:49 +00:00
jst%mozilla.org
76a2bf0e0e Fixing bug 394275. Fix problem with UTF16 to UTF8 character conversions when dealing with broken UTF16 characters. r+sr=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@235381 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-07 20:28:27 +00:00
jwalden%mit.edu
b6f3bdf388 Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change
git-svn-id: svn://10.0.0.236/trunk@233906 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-05 06:41:37 +00:00
bent.mozilla%gmail.com
8bfd32b3dd Bug 385250 - "IsVoid and IsTerminated may return something other than PR_TRUE and PR_FALSE". r=dbaron, sr=jag, a=bz.
git-svn-id: svn://10.0.0.236/trunk@232368 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-20 03:09:30 +00:00
philringnalda%gmail.com
1bbc58b2cf Bug 380783 - nsStringAPI.h: no equivalent of IsVoid (tell if string is null), patch by Mook <mook.moz+mozbz@gmail.com>, r=bsmedberg/dbaron, sr=dbaron, a1.9=bz
git-svn-id: svn://10.0.0.236/trunk@232323 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-18 03:48:17 +00:00
aaronr%us.ibm.com
8be0538464 make nsStringContainer_base smaller bug 390849, r+sr+a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@231615 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-07 23:37:44 +00:00
benjamin%smedbergs.us
8c9aa47aad Bug 387132 followup - build the reftest-fast tool correctly with libxul, r=vlad a=only functional change is NPOB
git-svn-id: svn://10.0.0.236/trunk@231547 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-06 20:13:19 +00:00
asqueella%gmail.com
db02bdc825 Bug 339069 - Optimization for RFindInReadable
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r=darin, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@230712 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 01:30:19 +00:00
jst%mozilla.org
9c54b2dff6 Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@229744 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 20:46:43 +00:00
neil%parkwaycc.co.uk
998c53a562 Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]


git-svn-id: svn://10.0.0.236/trunk@229689 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 08:46:49 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
jruderman%hmc.edu
51885d76e1 Fix bug 383426 (OOM crash). r=peterv, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@229224 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 06:03:11 +00:00
bent.mozilla%gmail.com
e9f948b44b Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg.
git-svn-id: svn://10.0.0.236/trunk@226538 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 20:10:18 +00:00
timeless%mozdev.org
4ed094a7fd Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
updating comment


git-svn-id: svn://10.0.0.236/trunk@217408 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-24 12:27:45 +00:00
timeless%mozdev.org
0dbce75039 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin


git-svn-id: svn://10.0.0.236/trunk@217295 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 07:13:58 +00:00
timeless%mozdev.org
3ea4e560e3 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin


git-svn-id: svn://10.0.0.236/trunk@217292 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 07:03:23 +00:00
mozilla%weilbacher.org
ed9c885ce9 Fix XPCOM build break on OS/2, see bug 345517. p=abwillis1, r=benjamin
git-svn-id: svn://10.0.0.236/trunk@216705 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 22:54:18 +00:00
benjamin%smedbergs.us
cae89c5987 From bug 345517 - fix adoptcount logging for the frozen string API, r=darin
git-svn-id: svn://10.0.0.236/trunk@215113 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-10 20:05:04 +00:00
smontagu%smontagu.org
edc2bb652e Prevent the IS_*_SURROGATE macros from identifying code points in supplementary planes as surrogates. Bug 347867, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@207040 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-10 10:12:37 +00:00
alfred.peng%sun.com
cfde3452d5 Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
jst: review+
darin: superreview+


git-svn-id: svn://10.0.0.236/trunk@206550 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 08:36:36 +00:00
darin%meer.net
3ebe1b89e8 fixing win32 build bustage
git-svn-id: svn://10.0.0.236/trunk@201167 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 23:49:57 +00:00
darin%meer.net
5b62b43f3d fixing win32 bustage
git-svn-id: svn://10.0.0.236/trunk@201157 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 22:54:40 +00:00
darin%meer.net
d49c6a4307 fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@201151 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 22:11:39 +00:00
dveditz%cruzio.com
1df5c4d525 bug 284219 addendum, missed biesi's review comment
git-svn-id: svn://10.0.0.236/trunk@200636 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 22:21:52 +00:00
dveditz%cruzio.com
f869942298 Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
simplify OOM checks when growing an nsAString. r/sr=darin


git-svn-id: svn://10.0.0.236/trunk@200610 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:30 +00:00
benjamin%smedbergs.us
897c6c82d6 Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin
git-svn-id: svn://10.0.0.236/trunk@198732 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-31 14:28:14 +00:00
bzbarsky%mit.edu
b21642b02c Do better logging of string leaks. Bug 336914, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@196369 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-12 03:36:37 +00:00
benjamin%smedbergs.us
dd146efb7b Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h


git-svn-id: svn://10.0.0.236/trunk@195900 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 16:11:14 +00:00
darin%meer.net
4663818f13 fixes bug 327719 "Passing a big double serialize a rounded double" patch by afatecha@idea.com.py r=dbaron sr=darin
git-svn-id: svn://10.0.0.236/trunk@192416 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 14:23:11 +00:00
bryner%brianryner.com
0eb842dfa8 Backing out patch for bug 328755 due to crash regression bug 328842. r=darin.
git-svn-id: svn://10.0.0.236/trunk@191450 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-01 00:38:15 +00:00
bryner%brianryner.com
fa9f41637c Don't allocate a buffer when assigning a zero-length string, just call Truncate() instead (bug 328755). r=darin.
git-svn-id: svn://10.0.0.236/trunk@191323 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 19:44:48 +00:00
timeless%mozdev.org
af51e73d0e Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 09:36:43 +00:00
darin%meer.net
47f1c672ec fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard and doesn't clear F_VOIDED flag" r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@188910 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-04 00:42:18 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bryner%brianryner.com
256fd4c351 Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin.
git-svn-id: svn://10.0.0.236/trunk@188104 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-24 19:22:02 +00:00
timeless%mozdev.org
dae7b0629a Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
jshin%mailaps.org
a1a064295d bug 317281 : Make UCS4 to High/Low surrogate pair a little bit more efficient (r=smontagu, sr=bz)
git-svn-id: svn://10.0.0.236/trunk@185129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 07:48:49 +00:00
bzbarsky%mit.edu
d167950632 Make definition match declaration for AppendUCS4ToUTF16. Bug 316859, patch by
Greg Onufer <gonufer@yahoo.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@185013 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 19:21:48 +00:00
bzbarsky%mit.edu
a452309e84 Fix stupid mistake in previous commit. Bug 316394, caught by smontagu
git-svn-id: svn://10.0.0.236/trunk@184818 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 15:13:25 +00:00
bzbarsky%mit.edu
2c6c1d1961 Fix build bustage. Bug 316394
git-svn-id: svn://10.0.0.236/trunk@184657 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 19:18:26 +00:00
bzbarsky%mit.edu
48dbeb8ec0 Move some basic macros for working with UTF16 from intl to XPCOM; use them in
some places including the HTML parser.  Part of fix for bug 316394; the CSS
parser changes are still coming.  r=smontagu, r=mrbkap on parser changes, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@184651 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 18:17:22 +00:00
bsmedberg%covad.net
7344fa60e3 Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver
git-svn-id: svn://10.0.0.236/trunk@184392 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 14:43:22 +00:00