Home
last modified time | relevance | path

Searched refs:buffer (Results 251 – 275 of 343) sorted by relevance

1...<<11121314

/php-src/ext/fileinfo/libmagic/
H A Dis_simh.c149 file_is_simh(struct magic_set *ms, const struct buffer *b) in file_is_simh()
H A Dsoftmagic.c49 const struct buffer *, size_t, int, int, int, uint16_t *,
51 file_private int mget(struct magic_set *, struct magic *, const struct buffer *,
55 file_private int msetoffset(struct magic_set *, struct magic *, struct buffer *,
56 const struct buffer *, size_t, unsigned int);
119 file_softmagic(struct magic_set *ms, const struct buffer *b, in file_softmagic()
222 struct buffer bb; in match()
843 moffset(struct magic_set *ms, struct magic *m, const struct buffer *b, in moffset()
1521 msetoffset(struct magic_set *ms, struct magic *m, struct buffer *bb, in msetoffset()
1522 const struct buffer *b, size_t o, unsigned int cont_level) in msetoffset()
1593 mget(struct magic_set *ms, struct magic *m, const struct buffer *b, in mget()
[all …]
/php-src/ext/fileinfo/
H A Dlibmagic.patch299 + char buffer[BUFSIZ + 1];
539 - * handle a buffer containing a compiled file.
553 - if (check_buffer(ms, map, "buffer") != 0) {
913 diff -u libmagic.orig/buffer.c libmagic/buffer.c
915 +++ libmagic/buffer.c 2024-02-15 19:28:46.036308654 +0100
942 buffer_fini(struct buffer *b)
1475 struct buffer {
1534 file_protected void buffer_fini(struct buffer *);
1535 file_protected int buffer_fill(const struct buffer *);
1979 struct buffer b;
[all …]
/php-src/ext/openssl/
H A Dphp_openssl.h74 int buffer[ERR_NUM_ERRORS]; member
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_arm.h340 int dasm_encode(Dst_DECL, void *buffer) in dasm_encode() argument
343 char *base = (char *)buffer; in dasm_encode()
344 unsigned int *cp = (unsigned int *)buffer; in dasm_encode()
/php-src/ext/mysqlnd/
H A Dmysqlnd_debug.c148 char * message_line, *buffer; in MYSQLND_METHOD() local
217 mnd_vsprintf(&buffer, 0, format, args); in MYSQLND_METHOD()
226 pipe_buffer, type? type:"", buffer); in MYSQLND_METHOD()
227 mnd_sprintf_free(buffer); in MYSQLND_METHOD()
H A Dmysqlnd_commands.c34 zend_uchar buffer[2]; in MYSQLND_METHOD() local
38 int2store(buffer, (unsigned int) option); in MYSQLND_METHOD()
40 ret = send_command(conn->payload_decoder_factory, COM_SET_OPTION, buffer, sizeof(buffer), FALSE, in MYSQLND_METHOD()
H A Dmysqlnd_vio.c75 MYSQLND_METHOD(mysqlnd_vio, network_read)(MYSQLND_VIO * const vio, zend_uchar * const buffer, const… in MYSQLND_METHOD()
81 zend_uchar * p = buffer; in MYSQLND_METHOD()
104 MYSQLND_METHOD(mysqlnd_vio, network_write)(MYSQLND_VIO * const vio, const zend_uchar * const buffer in MYSQLND_METHOD()
110 ret = php_stream_write(vio->data->m.get_stream(vio), (char *)buffer, count); in MYSQLND_METHOD()
/php-src/ext/ftp/
H A Dftp.c627 char *buffer; in ftp_chmod() local
634 buffer_len = spprintf(&buffer, 0, "CHMOD %o %s", mode, filename); in ftp_chmod()
636 if (!buffer) { in ftp_chmod()
640 if (!ftp_putcmd(ftp, "SITE", sizeof("SITE")-1, buffer, buffer_len)) { in ftp_chmod()
641 efree(buffer); in ftp_chmod()
645 efree(buffer); in ftp_chmod()
659 char buffer[64]; in ftp_alloc() local
666 buffer_len = snprintf(buffer, sizeof(buffer) - 1, ZEND_LONG_FMT, size); in ftp_alloc()
672 if (!ftp_putcmd(ftp, "ALLO", sizeof("ALLO")-1, buffer, buffer_len)) { in ftp_alloc()
/php-src/ext/exif/tests/
H A Dbug76557.phpt2 Bug 76557 (heap-buffer-overflow (READ of size 48) while reading exif data)
/php-src/ext/standard/tests/streams/
H A Dstream_get_line_nb.phpt39 var_dump(fread($sockets[1], strlen("incomplete line"))); // Returns buffer readden by stream_get_li…
/php-src/ext/gd/libgd/
H A Dgdft.c665 level = (bitmap.buffer[pc] * gdAlphaMax / (bitmap.num_grays - 1));
668 … level = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? gdAlphaTransparent : gdAlphaOpaque;
734 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
736 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
738 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
/php-src/main/streams/
H A Dphp_stream_filter_api.h115 php_stream_bucket_brigade buffer; member
/php-src/ext/phar/
H A Dtar.c304 # define PHAR_GET_32(buffer) \ in phar_parse_tarfile() argument
305 (((((unsigned char*)(buffer))[3]) << 24) \ in phar_parse_tarfile()
306 | ((((unsigned char*)(buffer))[2]) << 16) \ in phar_parse_tarfile()
307 | ((((unsigned char*)(buffer))[1]) << 8) \ in phar_parse_tarfile()
308 | (((unsigned char*)(buffer))[0])) in phar_parse_tarfile()
310 # define PHAR_GET_32(buffer) (uint32_t) *(buffer) in phar_parse_tarfile() argument
H A Dzip.c27 static inline void phar_write_32(char buffer[4], uint32_t 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], uint32_t 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-src/ext/mbstring/tests/
H A Dmb_decode_mimeheader_variation4.phpt85 // passed the last buffer of wchars without passing 'end' flag, then called one more
86 // time with an empty buffer and 'end' flag to finish up
H A Dsjis_mobile_encodings.phpt312 // Regression test for problem with not allocating enough space in output buffer
328 // the very end of one buffer of wchars, and the keycap modifier was at the
329 // beginning of the following buffer of wchars
336 // Regression test for 0-9 appearing at end of one buffer and U+203E NOT appearing
344 // Regression test for not making enough space in output buffer when 0-9 appeared
345 // at the end of one buffer and was re-processed together with the next
/php-src/main/
H A DSAPI.c234 SAPI_API size_t sapi_read_post_block(char *buffer, size_t buflen) in sapi_read_post_block() argument
242 read_bytes = sapi_module.read_post(buffer, buflen); in sapi_read_post_block()
273 char buffer[SAPI_POST_BLOCK_SIZE]; in SAPI_POST_READER_FUNC() local
275 read_bytes = sapi_read_post_block(buffer, SAPI_POST_BLOCK_SIZE); in SAPI_POST_READER_FUNC()
278 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
/php-src/ext/standard/
H A Dsha1.c194 ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); in PHP_SHA1Update()
195 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
206 ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], in PHP_SHA1Update()
H A Dbasic_functions.c539 char buffer[40]; in PHP_FUNCTION() local
554 if (!inet_ntop(af, address, buffer, sizeof(buffer))) { in PHP_FUNCTION()
558 RETURN_STRING(buffer); in PHP_FUNCTION()
568 char buffer[17]; in PHP_FUNCTION() local
574 memset(buffer, 0, sizeof(buffer)); in PHP_FUNCTION()
585 ret = inet_pton(af, address, buffer); in PHP_FUNCTION()
591 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16); in PHP_FUNCTION()
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_get_attribute.phpt72 Maximum buffer size. Defaults to 1 MiB.
H A Dpdo_mysql_quote_gbk_double_escape.phpt24 …r 0xBF isn't handled in the switch case so we don't escape it and append 0xBF to the output buffer.
/php-src/docs-old/
H A Dstreams.md116 If you want to read the contents of a stream into an allocated memory buffer,
124 This function will set buf to the address of the buffer that it allocated, which
126 remaining on the stream if you set maxlen to `PHP_STREAM_COPY_ALL`. The buffer
247 itself, which holds some state information (and possibly a buffer) and a
297 * `bufsize` is the size of the buffer to use - if 0, then buffering at the
379 such as coping with a buffer size too small to hold the data,
/php-src/ext/hash/xxhash/
H A Dxxhash.h1076 XXH_ALIGN_MEMBER(64, unsigned char buffer[XXH3_INTERNALBUFFER_SIZE]);
4844 XXH_memcpy(state->buffer + state->bufferedSize, input, len); in XXH3_update()
4859 XXH_memcpy(state->buffer + state->bufferedSize, input, loadSize); in XXH3_update()
4863 state->buffer, XXH3_INTERNALBUFFER_STRIPES, in XXH3_update()
4896 …XXH_memcpy(state->buffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STR… in XXH3_update()
4912 …XXH_memcpy(state->buffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STR… in XXH3_update()
4920 XXH_memcpy(state->buffer, input, (size_t)(bEnd-input)); in XXH3_update()
4955 state->buffer, nbStripes, in XXH3_digest_long()
4966 XXH_memcpy(lastStripe, state->buffer + sizeof(state->buffer) - catchupSize, catchupSize); in XXH3_digest_long()
4988 return XXH3_64bits_withSecret(state->buffer, (size_t)(state->totalLen), in XXH3_64bits_digest()
[all …]
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_substitute.c211 memcpy(buffer + buff_offset, from, CU2BYTES(length)); \
223 PCRE2_UCHAR *buffer, PCRE2_SIZE *blength) in pcre2_substitute() argument
327 scb.output = (PCRE2_SPTR)buffer; in pcre2_substitute()

Completed in 244 milliseconds

1...<<11121314