mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-08-15 11:58:11 +03:00
host: simtrace2_api: do not log random memory
tx_cfg->features is logged before the memcpy() that fills it. Looks like no one is using config.ac --enable-sanitize? Change-Id: Id8369d312c8600ba9eea80c8f7782f196d7e20d1
This commit is contained in:
@@ -280,7 +280,7 @@ int osmo_st2_cardem_request_config2(struct osmo_st2_cardem_inst *ci, const struc
|
|||||||
|
|
||||||
tx_cfg = (struct cardemu_usb_msg_config *) msgb_put(msg, sizeof(*tx_cfg));
|
tx_cfg = (struct cardemu_usb_msg_config *) msgb_put(msg, sizeof(*tx_cfg));
|
||||||
|
|
||||||
LOGSLOT(ci->slot, LOGL_NOTICE, "<= %s(features=%08x)\n", __func__, tx_cfg->features);
|
LOGSLOT(ci->slot, LOGL_NOTICE, "<= %s(features=%08x)\n", __func__, user_cfg->features);
|
||||||
memcpy(tx_cfg, user_cfg, sizeof(*tx_cfg));
|
memcpy(tx_cfg, user_cfg, sizeof(*tx_cfg));
|
||||||
osmo_store32le(user_cfg->features, &tx_cfg->features);
|
osmo_store32le(user_cfg->features, &tx_cfg->features);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user