]> git.saurik.com Git - apple/security.git/blobdiff - Security/libsecurity_asn1/lib/SecNssCoder.h
Security-57031.30.12.tar.gz
[apple/security.git] / Security / libsecurity_asn1 / lib / SecNssCoder.h
index 52d83ceceb075c85408ad0ebf5162f532bbbdee6..14effa89983b8654dd3cc6e807f63bc68881a004 100644 (file)
@@ -105,7 +105,7 @@ public:
                
        /* allocate space for num copies of specified type */
        template <class T> T *mallocn(unsigned num = 1) 
-               { return reinterpret_cast<T *>(malloc(sizeof(T) * num)); }
+               { return reinterpret_cast<T *>(malloc_T(sizeof(T),num)); }
 
        /* malloc item.Data, set item.Length */
        void allocItem(
@@ -132,6 +132,9 @@ public:
        
 private:
        PLArenaPool             *mPool;
+
+    void *malloc_T(size_t unit_bytesize,
+                   size_t num_units);
 };
 
 /*