~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/lib/libc/include/plbase64.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 * be terminated with an extra null character.  It is the caller's 
58
58
 * responsibility to free the result when it is allocated.  A null is returned 
59
59
 * if the allocation fails.
60
 
 *
61
 
 * NOTE: when calculating ((srclen + 2)/3)*4), first ensure that
62
 
 *     srclen <= (PR_UINT32_MAX/4) * 3
63
 
 * to avoid PRUint32 overflow.
64
60
 */
65
61
 
66
62
PR_EXTERN(char *)
87
83
 * result *will* be terminated with an extra null character.  It is the
88
84
 * caller's responsibility to free the result when it is allocated.  A null
89
85
 * is retuned if the allocation fails, or if the source is not well-coded.
90
 
 *
91
 
 * NOTE: when calculating (srclen * 3)/4, first ensure that 
92
 
 *     srclen <= PR_UINT32_MAX/3
93
 
 * to avoid PRUint32 overflow.  Alternatively, calculate
94
 
 *     (srclen/4) * 3 + ((srclen%4) * 3)/4
95
 
 * which is equivalent but doesn't overflow for any value of srclen.
96
86
 */
97
87
 
98
88
PR_EXTERN(char *)