Home
last modified time | relevance | path

Searched refs:buffer (Results 126 – 150 of 291) sorted by path

12345678910>>...12

/PHP-5.5/ext/phar/tests/tar/
H A Dbignames_overflow.phpt2 Phar: tar with huge filenames, buffer overflow
/PHP-5.5/ext/phar/tests/tar/files/
H A Dmake.dangerous.tar.php.inc3 // this tarmaker makes a malicious tar with a header designed to overflow the buffer
/PHP-5.5/ext/phar/
H A Dzip.c27 static inline void phar_write_32(char buffer[4], php_uint32 value) in phar_write_32()
29 buffer[3] = (unsigned char) ((value & 0xff000000) >> 24); in phar_write_32()
30 buffer[2] = (unsigned char) ((value & 0xff0000) >> 16); in phar_write_32()
31 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_32()
32 buffer[0] = (unsigned char) (value & 0xff); in phar_write_32()
34 static inline void phar_write_16(char buffer[2], php_uint32 value) in phar_write_16()
36 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_16()
37 buffer[0] = (unsigned char) (value & 0xff); in phar_write_16()
/PHP-5.5/ext/posix/
H A Dposix.c678 char buffer[L_ctermid]; in PHP_FUNCTION() local
682 if (NULL == ctermid(buffer)) { in PHP_FUNCTION()
690 RETURN_STRING(buffer, 1); in PHP_FUNCTION()
810 char buffer[MAXPATHLEN]; in PHP_FUNCTION() local
815 p = VCWD_GETCWD(buffer, MAXPATHLEN); in PHP_FUNCTION()
821 RETURN_STRING(buffer, 1); in PHP_FUNCTION()
/PHP-5.5/ext/simplexml/
H A Dsimplexml.c411 xmlChar *buffer; in change_node_zval() local
432 buffer = xmlEncodeEntitiesReentrant(node->doc, (xmlChar *)Z_STRVAL_P(value)); in change_node_zval()
433 buffer_len = xmlStrlen(buffer); in change_node_zval()
435 if (buffer) { in change_node_zval()
436 xmlNodeSetContentLen(node, buffer, buffer_len); in change_node_zval()
437 xmlFree(buffer); in change_node_zval()
1430 RETVAL_STRINGL((char *)outbuf->buffer->content, outbuf->buffer->use, 1); in SXE_METHOD()
/PHP-5.5/ext/soap/
H A Dphp_http.c339 char **buffer, in make_http_soap_request() argument
883 if (!buffer) { in make_http_soap_request()
1280 *buffer = Z_STRVAL(retval); in make_http_soap_request()
1294 *buffer = http_body; in make_http_soap_request()
1307 char *s = *buffer; in make_http_soap_request()
1319 efree(*buffer); in make_http_soap_request()
H A Dphp_packet_soap.c25 int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunctionPtr fn, char *fn_na… in parse_packet_soap() argument
43 response = soap_xmlParseMemory(buffer, buffer_size); in parse_packet_soap()
H A Dphp_packet_soap.h25 int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunctionPtr fn, char *fn_na…
H A Dsoap.c2163 char buffer[1024]; local
2176 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2179 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2181 buffer[sizeof(buffer)-1]=0;
2183 buffer_len = sizeof(buffer) - 1;
2234 char buffer[1024]; local
2248 strcpy(buffer, "Internal Error");
2257 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2260 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2262 buffer[sizeof(buffer)-1]=0;
[all …]
/PHP-5.5/ext/sockets/
H A Dsendrecvmsg.c368 void *buffer; in php_do_getsockopt_ipv6_rfc3542() local
386 buffer = ecalloc(1, size); in php_do_getsockopt_ipv6_rfc3542()
387 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
391 zval *zv = to_zval_run_conversions(buffer, reader, "in6_pktinfo", in php_do_getsockopt_ipv6_rfc3542()
401 efree(buffer); in php_do_getsockopt_ipv6_rfc3542()
/PHP-5.5/ext/sockets/tests/
H A Dsocket_strerror.phpt130 string(25) "No buffer space available"
/PHP-5.5/ext/spl/internal/
H A Dsplfileobject.inc264 * Invalidate current line buffer and set line number to 0.
281 * @note Fill current line buffer if not done yet.
282 * @return line buffer
306 /** Invalidate current line buffer.
332 * Free the current line buffer and increment the line counter
/PHP-5.5/ext/sqlite3/
H A Dsqlite3.c1541 char *buffer = NULL; local
1548 blength = php_stream_copy_to_mem(stream, (void *)&buffer, PHP_STREAM_COPY_ALL, 0);
1552 buffer = Z_STRVAL_P(param->parameter);
1555 sqlite3_bind_blob(stmt_obj->stmt, param->param_number, buffer, blength, SQLITE_TRANSIENT);
1558 pefree(buffer, 0);
/PHP-5.5/ext/standard/
H A Dbasic_functions.c2123 ZEND_ARG_INFO(0, buffer)
2128 ZEND_ARG_INFO(0, buffer)
2640 ZEND_ARG_INFO(0, buffer)
3878 char buffer[40]; in PHP_NAMED_FUNCTION() local
3894 if (!inet_ntop(af, address, buffer, sizeof(buffer))) { in PHP_NAMED_FUNCTION()
3899 RETURN_STRING(buffer, 1); in PHP_NAMED_FUNCTION()
3912 char buffer[17]; in PHP_NAMED_FUNCTION() local
3918 memset(buffer, 0, sizeof(buffer)); in PHP_NAMED_FUNCTION()
3930 ret = inet_pton(af, address, buffer); in PHP_NAMED_FUNCTION()
3937 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16, 1); in PHP_NAMED_FUNCTION()
H A Dconfig.m414 char buffer[64];
27 fgets(buffer, sizeof(buffer), fp);
30 fgets(buffer, sizeof(buffer), fp);
31 if (0 != strcmp(buffer, "line 1\n"))
33 fgets(buffer, sizeof(buffer), fp);
34 if (0 != strcmp(buffer, "line 3\n"))
H A Dcrypt.c155 struct php_crypt_extended_data buffer; in php_crypt() local
217 memset(&buffer, 0, sizeof(buffer)); in php_crypt()
220 crypt_res = _crypt_extended_r(password, salt, &buffer); in php_crypt()
234 struct crypt_data buffer; in php_crypt() local
235 memset(&buffer, 0, sizeof(buffer)); in php_crypt()
237 CRYPTD buffer; in php_crypt()
241 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
H A Dcrypt_sha256.c269 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
276 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
279 buffer = (const char *) buffer + add; in sha256_process_bytes()
294 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
295 buffer = (const char *) buffer + 64; in sha256_process_bytes()
299 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
308 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
313 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
570 buffer = NULL; in php_sha256_crypt_r()
594 return buffer; in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c296 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
304 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
308 buffer = (const char *) buffer + add; in sha512_process_bytes()
324 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
325 buffer = (const char *) buffer + 128; in sha512_process_bytes()
332 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
341 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
346 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
617 buffer = NULL; in php_sha512_crypt_r()
640 return buffer; in php_sha512_crypt_r()
[all …]
H A Dfile.c1181 char *buffer = NULL; in PHP_FUNCTION() local
1200 ret = php_stream_write(stream, buffer ? buffer : arg2, num_bytes); in PHP_FUNCTION()
1201 if (buffer) { in PHP_FUNCTION()
1202 efree(buffer); in PHP_FUNCTION()
H A Dformatted_print.c65 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
68 (*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
108 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
112 (*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
118 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
122 memcpy(&(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
126 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
210 php_sprintf_appenddouble(char **buffer, int *pos, in php_sprintf_appenddouble() argument
344 php_sprintf_getnumber(char *buffer, int *pos) in php_sprintf_getnumber() argument
347 register long num = strtol(&buffer[*pos], &endptr, 10); in php_sprintf_getnumber()
[all …]
H A Dftp_fopen_wrapper.c83 static inline int get_ftp_result(php_stream *stream, char *buffer, size_t buffer_size TSRMLS_DC) in get_ftp_result() argument
85 while (php_stream_gets(stream, buffer, buffer_size-1) && in get_ftp_result()
86 !(isdigit((int) buffer[0]) && isdigit((int) buffer[1]) && in get_ftp_result()
87 isdigit((int) buffer[2]) && buffer[3] == ' ')); in get_ftp_result()
88 return strtol(buffer, NULL, 10); in get_ftp_result()
H A Dimage.c181 static unsigned long int php_swf_get_bits (unsigned char* buffer, unsigned int pos, unsigned int co… in php_swf_get_bits() argument
189 ((((buffer[loop / 8]) >> (7 - (loop % 8))) & 0x01) << (count - (loop - pos) - 1)); in php_swf_get_bits()
443 unsigned char *buffer; in php_read_APP() local
453 buffer = emalloc(length); in php_read_APP()
455 if (php_stream_read(stream, buffer, (long) length) <= 0) { in php_read_APP()
456 efree(buffer); in php_read_APP()
464 add_assoc_stringl(info, markername, buffer, length, 1); in php_read_APP()
467 efree(buffer); in php_read_APP()
H A Diptc.c315 unsigned char *buffer, recnum, dataset, key[ 16 ]; in PHP_FUNCTION() local
324 buffer = (unsigned char *)str; in PHP_FUNCTION()
327 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
335 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
342 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
343 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
345 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
349 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
350 (((long) buffer[ inx + 4 ]) << 8) + (((long) buffer[ inx + 5 ])); in PHP_FUNCTION()
353 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
[all …]
H A Dmd5.c329 body(ctx, ctx->buffer, 64); in PHP_MD5Update()
337 memcpy(ctx->buffer, data, size); in PHP_MD5Update()
346 ctx->buffer[used++] = 0x80; in PHP_MD5Final()
352 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
360 ctx->buffer[56] = ctx->lo; in PHP_MD5Final()
361 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final()
362 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final()
363 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final()
364 ctx->buffer[60] = ctx->hi; in PHP_MD5Final()
365 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final()
[all …]
H A Dmd5.h47 unsigned char buffer[64]; member

Completed in 93 milliseconds

12345678910>>...12