Home
last modified time | relevance | path

Searched refs:g_memdup2 (Results 1 – 23 of 23) sorted by relevance

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pidgin/pidgin-sipe/
H A D0001-Migrate-to-use-g_memdup2.patch4 Subject: [PATCH] Migrate to use g_memdup2
12 /* Backport the static inline version of g_memdup2 if we don't have g_memdup2.
18 g_memdup2(gconstpointer mem, gsize byte_size) {
52 +// for g_memdup2
85 + *server_challenge = g_memdup2(cmsg->nonce, 8);
94 + *target_info = g_memdup2(content, len);
103 + *client_sign_key = g_memdup2(key, 16);
106 + *server_sign_key = g_memdup2(key, 16);
109 + *client_seal_key = g_memdup2(key, 16);
112 + *server_seal_key = g_memdup2(key, 16);
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-iov.c175 siov = g_memdup2(iov, sizeof(*iov) * niov); in test_io()
354 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
365 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
377 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
389 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
401 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
412 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
503 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo()
513 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo()
524 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo()
[all …]
H A Dptimer-test.c828 g_memdup2(&policy, 1), check_set_count, g_free); in add_ptimer_tests()
833 g_memdup2(&policy, 1), check_set_limit, g_free); in add_ptimer_tests()
838 g_memdup2(&policy, 1), check_oneshot, g_free); in add_ptimer_tests()
843 g_memdup2(&policy, 1), check_periodic, g_free); in add_ptimer_tests()
849 g_memdup2(&policy, 1), check_on_the_fly_mode_change, g_free); in add_ptimer_tests()
861 g_memdup2(&policy, 1), check_on_the_fly_freq_change, g_free); in add_ptimer_tests()
867 g_memdup2(&policy, 1), check_run_with_period_0, g_free); in add_ptimer_tests()
873 g_memdup2(&policy, 1), check_run_with_delta_0, g_free); in add_ptimer_tests()
879 g_memdup2(&policy, 1), check_periodic_with_load_0, g_free); in add_ptimer_tests()
885 g_memdup2(&policy, 1), check_oneshot_with_load_0, g_free); in add_ptimer_tests()
[all …]
/openbmc/qemu/include/
H A Dglib-compat.h92 return g_memdup2(mem, byte_size); in g_memdup2_qemu()
106 #define g_memdup2(m, s) g_memdup2_qemu(m, s) macro
/openbmc/qemu/hw/hppa/
H A Dmachine.c210 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
214 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
218 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
222 g_memdup2(mc->name, len), len); in create_fw_cfg()
226 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
230 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
234 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg()
240 g_memdup2(qemu_version, sizeof(qemu_version)), in create_fw_cfg()
/openbmc/qemu/contrib/plugins/
H A Dlockstep.c113 return g_memdup2(mem, byte_size); in g_memdup2_qemu()
127 #define g_memdup2(m, s) g_memdup2_qemu(m, s) macro
159 g_memdup2(&divrec, sizeof(divrec))); in report_divergance()
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/
H A DCVE-2023-6683.patch49 While at it, switch to g_memdup2(), because g_memdup() is deprecated.
81 + info->types[type].data = g_memdup2(data, size);
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pidgin/
H A Dpidgin-sipe_1.25.0.bb14 file://0001-Migrate-to-use-g_memdup2.patch \
/openbmc/qemu/ui/
H A Dclipboard.c183 info->types[type].data = g_memdup2(data, size); in qemu_clipboard_set_data()
/openbmc/qemu/crypto/
H A Drsakey-nettle.c.inc30 mpi->data = g_memdup2(i->data, i->length);
H A Drsakey-builtin.c.inc33 mpi->data = g_memdup2(value, vlen);
H A Dblock.c283 block->key = g_memdup2(key, nkey); in qcrypto_block_init_cipher()
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c369 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_ctrl()
842 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_request()
846 in_iov_copy = g_memdup2(elem->in_sg, sizeof(in_iov[0]) * in_num); in virtio_crypto_handle_request()
/openbmc/qemu/hw/cxl/
H A Dcxl-device-utils.c201 pl_in_copy = g_memdup2(pl, len_in); in mailbox_reg_write()
/openbmc/qemu/hw/mips/
H A Dloongson3_virt.c297 g_memdup2(suspend, sizeof(suspend)), sizeof(suspend)); in fw_conf_init()
/openbmc/qemu/tests/qtest/libqos/
H A Dqgraph.c96 edge->arg = g_memdup2(opts->arg, opts->size_arg); in add_edge()
H A Dahci.c694 opts = g_memdup2((opts_in == NULL ? &default_opts : opts_in), in ahci_exec()
915 cmd->props = g_memdup2(props, sizeof(AHCICommandProp)); in ahci_command_create()
/openbmc/qemu/target/ppc/
H A Dmmu-hash64.c1233 cpu->hash64_opts = g_memdup2(pcc->hash64_opts, sizeof(*cpu->hash64_opts)); in ppc_hash64_init()
/openbmc/qemu/hw/ppc/
H A Dspapr_pci.c2191 key = g_memdup2(&sphb->msi_devs[i].key, sizeof(sphb->msi_devs[i].key)); in spapr_pci_post_load()
2192 value = g_memdup2(&sphb->msi_devs[i].value, in spapr_pci_post_load()
/openbmc/qemu/hw/smbios/
H A Dsmbios.c1104 smbios_tables = g_memdup2(usr_blobs, usr_blobs_len); in smbios_get_tables_ep()
/openbmc/qemu/block/
H A Dqcow2-bitmap.c1612 tb = g_memdup2(&bm->table, sizeof(bm->table)); in qcow2_store_persistent_dirty_bitmaps()
/openbmc/qemu/target/i386/
H A Dsev.c671 ovmf_sev_metadata_table = g_memdup2(metadata, metadata->len); in pc_system_parse_sev_metadata()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c1560 iov2 = iov = g_memdup2(out_sg, sizeof(struct iovec) * out_num); in virtio_net_handle_ctrl_iov()