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
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
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
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
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
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
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
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
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
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
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
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
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
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
$(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
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
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
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
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
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
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