~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/lib/libc/src/strlen.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 11:28:24 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616112824-cg6qzhvt63lx7bub
Tags: 4.7.5-0ubuntu1
* New upstream version: 4.7.5 (LP: #387745)

* adjust patches to changed upstream code base
  - update debian/patches/99_configure.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
     * we don't have ultra long strings that overflow an int32
54
54
     */ 
55
55
    if( sizeof(PRUint32) < sizeof(size_t) )
56
 
        PR_ASSERT(l < 2147483647);
 
56
    {
 
57
        if( l > PR_INT32_MAX )
 
58
            PR_Assert("l <= PR_INT32_MAX", __FILE__, __LINE__);
 
59
    }
57
60
 
58
61
    return (PRUint32)l;
59
62
}