93 Commits

Author SHA1 Message Date
wtc%google.com
ccd8ff76b8 Remove obsolete MANIFEST files for the Classic Mac build system.
Removed Files:
	lib/ds/MANIFEST lib/libc/include/MANIFEST
	lib/msgc/include/MANIFEST pr/include/MANIFEST


git-svn-id: svn://10.0.0.236/trunk@259460 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-23 01:24:06 +00:00
sgautherie.bz%free.fr
686ecd3c69 Bug 506502 - Remove "MOZ_BITS == 16" parts (in dbm and nsprpub); (Cv1) Remove "MOZ_BITS == 16" blocks; r=wtc
git-svn-id: svn://10.0.0.236/trunk@257942 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-04 18:07:35 +00:00
wtc%google.com
d9880dcf9a Bug 492779: Added comments to plbase64.h to explain how to avoid PRUint32
overflow when calculating destination buffer sizes.  Call strlen instead of
PL_strlen so we can detect size_t to PRUint32 truncations.  Changed
PL_Base64Decode to use the exact same formula documented in the header.
r=nelson.
Modified Files: plbase64.h base64.c


git-svn-id: svn://10.0.0.236/trunk@257264 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:17:38 +00:00
wtc%google.com
cd42121f73 Bug 492779: assert that PL_strlen's return value doesn't overflow PRInt32
in optimized builds as well.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@257263 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:13:11 +00:00
wtc%google.com
46b49ff85b Bug 492779: In PL_Base64Encode and PL_Base64Decode, ensure that all
PRUint32 values stay within range.  In PL_strlen, replaced the magic
constant 2147483647 by PR_INT32_MAX.  r=nelson.
Modified Files: base64.c strlen.c


git-svn-id: svn://10.0.0.236/trunk@257203 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 16:00:59 +00:00
nelson%bolyard.com
8b6e3007e7 Bug 491045: Remove support for VMS (a.k.a., OpenVMS) from NSPR, r=wtc
git-svn-id: svn://10.0.0.236/trunk@257100 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 23:08:06 +00:00
wtc%google.com
72cf124ef4 Bug 433790: removed obsolete Win16 code from mozilla/nsprpub/lib. The
patch is contributed by Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	ds/plhash.c libc/src/plerror.c msgc/include/prgc.h
	msgc/src/prgcapi.c msgc/src/prmsgc.c msgc/tests/Makefile.in
	prstreams/tests/testprstrm/Makefile.in tests/Makefile.in
Removed Files:
	msgc/src/win16gc.c


git-svn-id: svn://10.0.0.236/trunk@256286 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 18:56:04 +00:00
wtc%google.com
774a08b056 Bug 313282: Include <string.h> for strlen.
git-svn-id: svn://10.0.0.236/trunk@253799 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-23 17:17:18 +00:00
wtc%google.com
3c6cdc8f9e Bug 313282: comnined strccmp.c (rev. 3.7) and strcstr.c (rev. 3.8) into
strcase.c so that the functions can share the |uc| table easily.
Modified Files:
	Makefile.in
Added Files:
	strcase.c
Removed Files:
	strccmp.c strcstr.c


git-svn-id: svn://10.0.0.236/trunk@252182 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-07 19:20:10 +00:00
wtc%google.com
65fda1c9b4 Bug 313282: we can call strlen instead of PL_strlen after checking their
arguments for null.  The patch is contributed by Alfred Kayser
<alfredkayser@gmail.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@252037 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-01 18:28:06 +00:00
mozilla%weilbacher.org
1e7468e069 [OS/2] Bug 330720: remove support for the obsolete OS/2-VACPP from NSPR and use XP_OS2 instead of XP_OS2_EMX everywhere, p=mkaply/me, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@251088 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-02 08:18:15 +00:00
nelson%bolyard.com
8733f6d407 Bug 346354 - add capability to parse string command line options, r=wtc
git-svn-id: svn://10.0.0.236/trunk@231495 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-04 23:26:07 +00:00
wtc%google.com
fce55018eb Bugzilla Bug 385347: change "CompanyName" to "Mozilla Foundation\0" and
remove the optional "LegalCopyright".  r=sspitzer
Modified Files: plds.rc plc.rc prstrms.rc nspr.rc


git-svn-id: svn://10.0.0.236/trunk@230402 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-20 23:21:43 +00:00
wtchang%redhat.com
25355e66ec Bug 369467: use a more robust way to ensure the pointer p does not point
before the array big.  The patch is contributed by Wolfgang Rosenauer
<mozilla@rosenauer.org>. r=wtc


git-svn-id: svn://10.0.0.236/trunk@220323 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-15 18:23:15 +00:00
julien.pierre.bugs%sun.com
8aa9be9e09 Fix for bug 356616 . NSPR DLLs should build at default base address. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@213831 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 00:36:57 +00:00
wtchang%redhat.com
93d4002a3c Bugzilla Bug 353427: changed PL_FPrintError to use PR_ErrorToName to avoid
duplicating the error table.  This fixed an array index out of bounds error
reported by Klockwork as a by-product. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@212141 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-22 02:10:40 +00:00
cls%seawood.org
448f178000 Use dashes instead of backslashes for program options to avoid msys shell expansion.
Thanks to Howard Chu <hyc@symas.com> for the patch.
Bug #294122 r=cls a=shaver


git-svn-id: svn://10.0.0.236/trunk@173906 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 14:28:35 +00:00
wtchang%redhat.com
1a97a65f35 Changed "it's" to "its".
git-svn-id: svn://10.0.0.236/trunk@170819 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-17 02:24:01 +00:00
wtchang%redhat.com
80d95a6465 Removed blank lines in *.def files.
Modified Files: plds.def plc.def nspr.def my.def


git-svn-id: svn://10.0.0.236/trunk@170354 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 03:01:05 +00:00
gerv%gerv.net
a2d903c9f2 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@168726 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 22:28:27 +00:00
wchang0222%aol.com
cc2901f355 Bugzilla bug 106386: fixed the spelling errors in NSPR's public header
files.  This is a portion of attachment 106386, which was contributed by
timeless@bemail.org.  r=wtc.
Modified Files: prolock.h prtypes.h plresolv.h plstr.h prgc.h


git-svn-id: svn://10.0.0.236/trunk@165600 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 00:54:05 +00:00
wchang0222%aol.com
b43f5c3adb Bugzilla bug 244095: link libplds4.so and libplc4.so with -R $ORIGIN on
Solaris.  The patch is contributed by Julien Pierre.  r=wtc.
Modified Files:
	lib/ds/Makefile.in lib/libc/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@157002 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-27 02:45:04 +00:00
wchang0222%aol.com
910b0ddf8b Bugzilla bug 209499: more improvements to PL_str functions. The patch for
strdup.c is contributed by Bernard Alleysson <balleysson@bigfoot.com>.
The patch for strcat.c and strstr.c is contributed by Dan Witte
<dwitte@stanford.edu>.  r=wtc.
Modified Files: strcat.c strcpy.c strdup.c strstr.c


git-svn-id: svn://10.0.0.236/trunk@155817 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 06:07:59 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
wchang0222%aol.com
8ccde7d74f Bugzilla bug 209499: backed out the change to strncpy in the previous
checkin because I noticed a subtle difference between PL_strncpy and
strncpy (the code marked with JLRU).


git-svn-id: svn://10.0.0.236/trunk@155457 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 17:59:16 +00:00
wchang0222%aol.com
3abb3a1fa3 Bugzilla bug 209499: converted some PL_str* implementations to use ANSI C
equivalents.  The patch is contributed by Dan Witte <dwitte@stanford.edu>.
r=wtc.
Modified Files: strcat.c strchr.c strcmp.c strcpy.c strdup.c strlen.c
                strpbrk.c strstr.c


git-svn-id: svn://10.0.0.236/trunk@155454 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 17:33:46 +00:00
wtc%netscape.com
aba8c23c27 Bugzilla bug 218967: do not initialize unsigned chars with character
constants '\ddd' where ddd is an octal number larger than 127 (decimal).
Such character constants have negative integer values if 'char' is signed.
Thanks to timeless@bemail.org for the bug report and a suggested fix.


git-svn-id: svn://10.0.0.236/trunk@147000 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-17 20:14:25 +00:00
wtc%netscape.com
e265371b6f Merged the changes from NSPRPUB_PRE_4_2_CLIENT_BRANCH onto the trunk. Most
of these changes are for OS/2.
Modified Files:
	configure.in build/cygwin-wrapper config/rules.mk
	lib/ds/Makefile.in lib/ds/plds.def lib/libc/src/Makefile.in
	lib/libc/src/plc.def pr/include/md/_os2.h pr/src/Makefile.in
	pr/src/nspr.def pr/src/linking/prlink.c
	pr/src/md/os2/Makefile.in pr/src/md/os2/objs.mk
	pr/src/md/os2/os2cv.c pr/src/md/os2/os2misc.c
	pr/src/md/os2/os2poll.c pr/src/md/os2/os2sock.c
	pr/src/md/os2/os2thred.c pr/tests/Makefile.in
	pr/tests/attach.c


git-svn-id: svn://10.0.0.236/trunk@142405 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 01:24:08 +00:00
wtc%netscape.com
2edc559488 Bug 196004: support building with gcc on Solaris better, whether gcc uses
the GNU ld or Solaris ld. Do not pass -B/usr/ccs/bin/ to gcc.
Modified files: configure configure.in autoconf.mk.in
        lib/ds/Makefile.in lib/libc/src/Makefile.in pr/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@140069 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 15:36:13 +00:00
wtc%netscape.com
7d9945c67e Bug 134113: make NSPR build on Win32 using MinGW gcc. The patch is
contributed by Chris Seawood <seawood@cls.org> and Dan Mosedale
<dmose@mozilla.org>. r=wtc.
Modified files: configure configure.in config/Makefile.in autoconf.mk.in
now.c rules.mk lib/ds/Makefile.in lib/libc/src/Makefile.in
lib/msgc/src/Makefile.in prtypes.h _winnt.h pr/src/Makefile.in prmapopt.c
pr/src/md/windows/Makefile.in ntio.c ntmisc.c pr/tests/Makefile.in
runtests.ksh pr/tests/dll/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@136681 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 16:26:24 +00:00
wtc%netscape.com
2a3cdb735c Bug 185034: updated the OpenVMS symbol vector tables for NSPR 4.3.
The patch is contributed by Colin Blake <colin@theblakes.com>.
Modified Files: nspr_symvec.opt plds_symvec.opt plc_symvec.opt


git-svn-id: svn://10.0.0.236/trunk@136347 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-15 00:00:14 +00:00
wtc%netscape.com
6d9449e4d8 Bug 188976: avoid calculating the difference of two unsigned integer if
the difference is really a negative number.  Thanks to Rick Swift for the
patch.


git-svn-id: svn://10.0.0.236/trunk@136282 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 02:07:16 +00:00
wtc%netscape.com
ae0fe3d699 1. Use $(CC) (the compiler) to build shared libraries on Solaris. Added
the -z defs linker flag back.
Modified files: configure configure.in lib/ds/Makefile.in
lib/libc/src/Makefile.in pr/src/Makefile.in
2. Let pr/src/md/unix/Makefile.in be responsible for removing the
pr/src/cpu directory because it creates that directory.  Note that the
'clean' target does not remove the directory because it doesn't remove
the .so's either.
Modified files: pr/src/Makefile.in, pr/src/md/unix/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@135990 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:19:01 +00:00
wtc%netscape.com
6a4400f0c5 Bug 158704: should use GARBAGE instead of ALL_TRASH to specify that
$(MAPFILE) should be removed by "make clean".  In pr/src, the "cpu"
directory needs to be removed if NSDISTMODE is not "copy".
Modified Files:
	pr/src/Makefile.in lib/ds/Makefile.in lib/libc/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@135893 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-06 19:43:48 +00:00
wtc%netscape.com
f38ca95e78 Bug 158704: merged the Solaris packaging stuff onto the trunk. The three
shared libraries are built with mapfiles that specify versioned export
symbols.  We use the $ORIGIN and $ISALIST linker keywords to specify the
location of the ultrasparc filtee.


git-svn-id: svn://10.0.0.236/trunk@135843 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-04 02:14:13 +00:00
wtc%netscape.com
2e088382b2 I forgot to make version NSPR_4.2 depend on version NSPR_4.0.
git-svn-id: svn://10.0.0.236/trunk@135838 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 22:22:47 +00:00
wtc%netscape.com
a0936b7c6f Bug 158704: added nspr.def, plds.def, and plc.def to the tip (pre 4.3).
git-svn-id: svn://10.0.0.236/trunk@135837 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 22:14:14 +00:00
wtc%netscape.com
b4939c1915 Bug 180293: moved the OpenVMS build from the POSIX subsystem to native VMS
(GNV).  The patch is contributed by Colin Blakes <colin@theblakes.com>.
Modified Files: configure configure.in rules.mk pr/include/md/Makefile
        openvms.c
Added Files: plds_symvec.opt plc_symvec.opt nspr_symvec.opt


git-svn-id: svn://10.0.0.236/trunk@135156 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 01:41:31 +00:00
wtc%netscape.com
2fdf7b63d1 Bugzilla bug 135008: fixed the bug that PL_Base64Decode may step before
the buffer if the source string length is 0.  Thanks to Roger Chickering
<rogc@netscape.com> for the bug fix.


git-svn-id: svn://10.0.0.236/trunk@118019 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-03 19:09:25 +00:00
wtc%netscape.com
8e384b8dbf Added lib/tests/Makefile to the list of makefiles to be generated by
configure.
Modified files: configure configure.in
Bugzilla bug 106372: added new function PL_strtok_r.  The function was
implemented by Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>.
Modified files: lib/libc/include/plstr.h lib/libc/src/Makefile.in
    lib/tests/string.c
Added file: lib/libc/src/strtok.c


git-svn-id: svn://10.0.0.236/trunk@106872 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:49:52 +00:00
wtc%netscape.com
4567105730 Bugzilla bug 96571: fixed the PL_strn* functions that may read beyond
the end of buffer if the buffer is not null-terminated.
Modified files: strchr.c strcstr.c strlen.c strpbrk.c strstr.c


git-svn-id: svn://10.0.0.236/trunk@102763 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-11 22:22:16 +00:00
wtc%netscape.com
5b8e1cf962 Bugzilla bug 98741: changed the license URL to http://www.mozilla.org/MPL/.
Modified Files:
	pr/src/prvrsion.c lib/ds/plvrsion.c lib/libc/src/plvrsion.c
	lib/prstreams/plvrsion.c


git-svn-id: svn://10.0.0.236/trunk@102533 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:27:33 +00:00
wtc%netscape.com
3c67555c60 Bug 64217: use locale-independent date format so that it doesn't
contain a quotation mark in any locale.  Thanks to tzafrir@technion.ac.il
for the bug report.
Modified Files:
	pr/src/Makefile.in lib/ds/Makefile.in lib/libc/src/Makefile.in
	lib/prstreams/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@97817 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-23 14:42:24 +00:00
wtc%netscape.com
ef276783f6 We no longer need to generate the .vms files on OpenVMS.
Modified files: config/rules.mk lib/ds/Makefile.in lib/libc/src/Makefile.in
lib/prstreams/Makefile.in pr/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@97647 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 01:24:44 +00:00
wtc%netscape.com
8396785be2 Removed all Makefile's. The new autoconf build system uses Makefile.in's.
git-svn-id: svn://10.0.0.236/trunk@95308 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 21:26:28 +00:00
wtc%netscape.com
becd734ed3 Verified that the autoconf build system is equivalent to the classic
build system on OSF1, IRIX, and FreeBSD.
	configure configure.in config/autoconf.mk.in config/config.mk
	lib/ds/Makefile.in lib/libc/src/Makefile.in pr/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@95175 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 00:56:25 +00:00
wtc%netscape.com
9f68abd727 Verified that the autoconf build system is equivalent to the classic
build system on AIX, HP-UX, Linux, and Solaris.  The 'release' makefile
target still doesn't quite work.
Modified Files:
	configure configure.in config/Makefile.in
	config/autoconf.mk.in config/config.mk config/nsinstall.c
	config/rules.mk lib/ds/Makefile.in lib/libc/src/Makefile.in
	pr/include/md/Makefile.in pr/src/misc/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@95064 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 22:57:39 +00:00
wtc%netscape.com
96ba6be300 Merged NSPRPUB_CLIENT_BRANCH onto the trunk.
git-svn-id: svn://10.0.0.236/trunk@94721 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 01:31:18 +00:00
wtc%netscape.com
19bfb88f66 Merged NSPRPUB_CLIENT_BRANCH onto the trunk.
git-svn-id: svn://10.0.0.236/trunk@94719 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 01:17:17 +00:00
cls%seawood.org
82dff731aa Fix nspr autoconf for OpenVMS.
Thanks to Colin Blake <colin@theblakes.com> for the patch.
Bug #69842 r=cls


git-svn-id: svn://10.0.0.236/trunk@87947 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-25 21:50:47 +00:00