Searched refs:safe_emalloc (Results 1 - 25 of 95) sorted by relevance

1234

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Ddiv.c130 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2);
136 num2 = (unsigned char *) safe_emalloc (1, len2, 1);
167 mval = (unsigned char *) safe_emalloc (1, len2, 1);
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_color.c36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0);
H A Dwbmp.c128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL)
195 if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == NULL)
H A Dgd_png.c323 image_data = (png_bytep) safe_emalloc(rowbytes, height, 0);
325 row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0);
690 row_pointers = safe_emalloc(sizeof(png_bytep), height, 0);
693 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0);
731 row_pointers = safe_emalloc(height, sizeof(png_bytep), 0);
H A Dgdxpm.c45 colors = (int *) safe_emalloc(number, sizeof(int), 0);
/PHP_TRUNK/ext/dba/
H A Ddba_cdb.c166 new_entry = safe_emalloc(len, 1, 1);
271 key = safe_emalloc(klen, 1, 1);
303 key = safe_emalloc(klen, 1, 1);
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb_make.c174 c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0);
/PHP_TRUNK/ext/filter/
H A Dcallback_filter.c36 args = safe_emalloc(sizeof(zval), 1, 0);
/PHP_TRUNK/ext/intl/
H A Dintl_common.h31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_embedded.c55 arguments = safe_emalloc(sizeof(char *), argc + 1, 0);
76 groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(HASH_OF(grps)) + 1, 0);
94 groups = safe_emalloc(sizeof(char *), 1, 0);
/PHP_TRUNK/ext/phar/
H A Ddirstream.c228 entry = (char *) safe_emalloc(found - str_key->val, 1, 1);
233 entry = (char *) safe_emalloc(keylen, 1, 1);
262 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1);
269 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1);
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_saproxy.c105 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval), 0);
165 indices = safe_emalloc(dims, sizeof(LONG), 0);
217 zval *args = safe_emalloc(proxy->dimensions + 2, sizeof(zval), 0);
240 indices = safe_emalloc(dims, sizeof(LONG), 0);
397 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0);
448 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0);
561 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0);
H A Dcom_olechar.c48 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0);
83 string = (char*)safe_emalloc(length, sizeof(char), 0);
/PHP_TRUNK/ext/interbase/
H A Dibase_events.c328 event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0);
334 event->events = (char **) safe_emalloc(sizeof(char *),ZEND_NUM_ARGS()-i,0);
/PHP_TRUNK/ext/oci8/
H A Doci8_statement.c767 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0);
1650 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0);
1655 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0);
1657 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0);
1709 bind->array.elements = (ub4 *)safe_emalloc(max_table_length, sizeof(ub4), 0);
1713 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0);
1748 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0);
1752 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0);
1788 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0);
1792 bind->array.element_lengths = safe_emalloc(max_table_lengt
[all...]
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c308 *quoted = safe_emalloc(2, unquotedlen, 3);
/PHP_TRUNK/ext/standard/
H A Dscanf.c170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0);
172 cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0);
327 nassign = (int*)safe_emalloc(sizeof(int), numVars, 0);
502 nassign = (void *)safe_emalloc(nspace, sizeof(int), 0);
H A Dlevenshtein.c45 p1 = safe_emalloc((l2 + 1), sizeof(int), 0);
46 p2 = safe_emalloc((l2 + 1), sizeof(int), 0);
H A Dpassword.c124 buffer = (char *) safe_emalloc(raw_length, 1, 1);
159 result = safe_emalloc(length, 1, 1);
401 salt = safe_emalloc(required_salt_len, 1, 1);
411 salt = safe_emalloc(required_salt_len, 1, 1);
417 salt = safe_emalloc(required_salt_len, 1, 1);
428 hash = safe_emalloc(salt_len + hash_format_len, 1, 1);
/PHP_TRUNK/ext/sysvmsg/
H A Dsysvmsg.c341 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
415 messagebuffer = safe_emalloc(msg_var.s->len, 1, sizeof(struct php_msgbuf));
444 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf));
/PHP_TRUNK/Zend/
H A Dzend_alloc.h143 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) macro
197 #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset))
/PHP_TRUNK/ext/ereg/
H A Dereg.c261 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0);
271 message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0);
441 buf = safe_emalloc(buf_len, sizeof(char), 0);
517 nbuf = safe_emalloc(buf_len, sizeof(char), 0);
532 nbuf = safe_emalloc(buf_len, sizeof(char), 0);
744 tmp = safe_emalloc(string_len, 4, 1);
/PHP_TRUNK/ext/intl/transliterator/
H A Dtransliterator_methods.c409 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) );
424 uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) );
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c1212 result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0);
1313 result->data = (zval **) safe_emalloc(sizeof(zval *), SYBASE_ROWS_BLOCK, 0);
1321 result->tmp_buffer = (char **) safe_emalloc(sizeof(char *), num_fields, 0);
1322 result->lengths = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0);
1323 result->indicators = (CS_SMALLINT *) safe_emalloc(sizeof(CS_INT), num_fields, 0);
1324 result->datafmt = (CS_DATAFMT *) safe_emalloc(sizeof(CS_DATAFMT), num_fields, 0);
1325 result->numerics = (unsigned char *) safe_emalloc(sizeof(unsigned char), num_fields, 0);
1326 result->types = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0);
1390 result->fields = (sybase_field *) safe_emalloc(sizeof(sybase_field), num_fields, 0);
/PHP_TRUNK/ext/ldap/
H A Dldap.c638 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0);
701 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0);
702 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0);
1296 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0);
1297 num_berval = safe_emalloc(num_attribs, sizeof(int), 0);
1338 ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0);
1691 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0);
1696 ldap_mods[i] = safe_emalloc(1, sizeof(LDAPMod), 0);
1734 ldap_mods[i]->mod_bvalues = safe_emalloc((num_modvals+1), sizeof(struct berval *), 0);
1743 ldap_mods[i]->mod_bvalues[j] = safe_emalloc(
[all...]

Completed in 33 milliseconds

1234