Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 17 of 17) sorted by relevance

/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/sox/sox/
H A DCVE-2021-40426.patch24 + bytes_read = strlen(buf);
25 + header_size -= bytes_read >= header_size ? header_size : bytes_read + 1;
34 + bytes_read = strlen(buf);
35 + header_size -= bytes_read >= header_size ? header_size : bytes_read + 1;
/openbmc/qemu/net/
H A Deth.c383 size_t bytes_read; in _eth_get_rss_ex_dst_addr() local
389 bytes_read = iov_to_buf(pkt, pkt_frags, ext_hdr_offset, in _eth_get_rss_ex_dst_addr()
391 assert(bytes_read == sizeof(rt_hdr)); in _eth_get_rss_ex_dst_addr()
395 bytes_read = iov_to_buf(pkt, pkt_frags, ext_hdr_offset + sizeof(rt_hdr), in _eth_get_rss_ex_dst_addr()
397 assert(bytes_read == sizeof(*dst_addr)); in _eth_get_rss_ex_dst_addr()
414 size_t bytes_read, optlen; in _eth_get_rss_ex_src_addr() local
420 bytes_read = iov_to_buf(pkt, pkt_frags, opt_offset, in _eth_get_rss_ex_src_addr()
423 if (bytes_read != sizeof(opthdr)) { in _eth_get_rss_ex_src_addr()
439 bytes_read = iov_to_buf(pkt, pkt_frags, in _eth_get_rss_ex_src_addr()
443 return bytes_read == sizeof(*src_addr); in _eth_get_rss_ex_src_addr()
[all …]
/openbmc/u-boot/cmd/
H A Davb.c47 size_t bytes, bytes_read = 0; in do_avb_read_part() local
64 buffer, &bytes_read) == in do_avb_read_part()
66 printf("Read %zu bytes\n", bytes_read); in do_avb_read_part()
80 size_t bytes, bytes_read = 0; in do_avb_read_part_hex() local
103 &bytes_read) == AVB_IO_RESULT_OK) { in do_avb_read_part_hex()
104 printf("Requested %zu, read %zu bytes\n", bytes, bytes_read); in do_avb_read_part_hex()
106 for (int i = 0; i < bytes_read; i++) in do_avb_read_part_hex()
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c165 size_t bytes_read; in net_tx_pkt_parse_headers() local
174 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, 0, l2_hdr->iov_base, in net_tx_pkt_parse_headers()
176 if (bytes_read < sizeof(struct eth_header)) { in net_tx_pkt_parse_headers()
191 if (bytes_read < l2_hdr->iov_len) { in net_tx_pkt_parse_headers()
206 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, l2_hdr->iov_len, in net_tx_pkt_parse_headers()
209 if (bytes_read < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
225 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, in net_tx_pkt_parse_headers()
229 if (bytes_read < l3_hdr->iov_len - sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
255 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, l2_hdr->iov_len, in net_tx_pkt_parse_headers()
258 if (bytes_read < full_ip6hdr_len) { in net_tx_pkt_parse_headers()
[all …]
/openbmc/u-boot/fs/jffs2/
H A Djffs2_1pass.c179 u32 bytes_read = 0; in read_nand_cached() local
187 while (bytes_read < size) { in read_nand_cached()
188 if ((off + bytes_read < nand_cache_off) || in read_nand_cached()
189 (off + bytes_read >= nand_cache_off+NAND_CACHE_SIZE)) { in read_nand_cached()
190 nand_cache_off = (off + bytes_read) & NAND_PAGE_MASK; in read_nand_cached()
211 cpy_bytes = nand_cache_off + NAND_CACHE_SIZE - (off + bytes_read); in read_nand_cached()
212 if (cpy_bytes > size - bytes_read) in read_nand_cached()
213 cpy_bytes = size - bytes_read; in read_nand_cached()
214 memcpy(buf + bytes_read, in read_nand_cached()
215 nand_cache + off + bytes_read - nand_cache_off, in read_nand_cached()
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/
H A DCVE-2021-4217.patch37 + unsigned bytes_read = readbuf(__G__ (char *)G.extra_field, length);
38 + if (bytes_read == 0)
40 + if (bytes_read != length)
/openbmc/qemu/tests/qtest/libqos/
H A Dsdhci-cmd.c93 ssize_t bytes_read = read_fifo(qts, base_addr + SDHC_BDATA, msg, count); in sdhci_read_cmd() local
99 return bytes_read; in sdhci_read_cmd()
/openbmc/libcper/
H A Dcper-parse.c191 int bytes_read = fread(cper_buf, 1, header.RecordLength, cper_file); in cper_to_ir() local
192 if (bytes_read < 0) { in cper_to_ir()
193 cper_print_log("File read failed with code %u\n", bytes_read); in cper_to_ir()
197 if ((UINT32)bytes_read != header.RecordLength) { in cper_to_ir()
206 json_object *ir = cper_buf_to_ir(cper_buf, bytes_read); in cper_to_ir()
/openbmc/u-boot/drivers/i2c/
H A Dkona_i2c.c306 unsigned int bytes_read = 0; in bcm_kona_i2c_read_fifo() local
311 while (bytes_read < msg->len) { in bcm_kona_i2c_read_fifo()
312 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) { in bcm_kona_i2c_read_fifo()
314 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo()
322 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/fontforge/fontforge/
H A DCVE-2024-25081_CVE-2024-25082.patch130 + gssize bytes_read;
168 + while ((bytes_read = read(stdout_pipe, buffer, sizeof(buffer))) > 0) {
169 + g_byte_array_append(binary_data, (guint8 *)buffer, bytes_read);
/openbmc/u-boot/drivers/usb/emul/
H A Dsandbox_flash.c336 ulong bytes_read; in sandbox_flash_bulk() local
338 bytes_read = os_read(priv->fd, buff, len); in sandbox_flash_bulk()
339 if (bytes_read != len) in sandbox_flash_bulk()
/openbmc/qemu/qga/
H A Dcommands.c349 gsize bytes_read; in guest_exec_output_watch() local
367 &bytes_read, NULL); in guest_exec_output_watch()
381 p->size - p->length, &bytes_read, NULL); in guest_exec_output_watch()
386 p->length += bytes_read; in guest_exec_output_watch()
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/
H A D0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch284 fprintf(stderr, "size = %ld\n" , (long) bytes_read);
289 bytes_read = read(fd, read_buffer, w->size);
290 if (bytes_read != w->size) {
294 fprintf(stderr, "bytes_read = %ld\n" , (long) bytes_read);
302 fprintf(stderr, "size = %ld\n" , (long) bytes_read);
/openbmc/qemu/backends/
H A Ddbus-vmstate.c223 gsize bytes_read, avail; in dbus_vmstate_post_load() local
236 &bytes_read, NULL, &err)) { in dbus_vmstate_post_load()
239 if (bytes_read != len) { in dbus_vmstate_post_load()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/bubblewrap/bubblewrap/
H A D0001-Use-stdbool.h-for-booleans.patch604 ssize_t bytes_read;
609 bytes_read = read (sfd, buffer, BUFSIZE);
610 if (bytes_read == -1)
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_fru_device.robot66 ${bytes_read}= Set Variable ${resp.split()[0]}
72 Should Be Equal ${bytes_inventory} ${bytes_read}
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/
H A D0003-wayland-Add-Wayland-example.patch748 + int bytes_read, image_sz = IMAGE_SIZE*IMAGE_SIZE*3;
757 + bytes_read=fread(state->tex_buf1, 1, image_sz, tex_file1);
758 + assert(bytes_read == image_sz); // some problem with file?
765 + bytes_read=fread(state->tex_buf2, 1, image_sz, tex_file2);
766 + assert(bytes_read == image_sz); // some problem with file?
773 + bytes_read=fread(state->tex_buf3, 1, image_sz, tex_file3);
774 + assert(bytes_read == image_sz); // some problem with file?