mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
host_file_io: Fixes uninitialized 'offset' and 'whence' fseek args
This commit is contained in:
parent
909eec9c3b
commit
13384221a7
@ -279,6 +279,8 @@ static void esp_apptrace_fseek_args_prepare(uint8_t *buf, void *priv)
|
|||||||
esp_apptrace_fseek_args_t *args = priv;
|
esp_apptrace_fseek_args_t *args = priv;
|
||||||
|
|
||||||
memcpy(buf, &args->file, sizeof(args->file));
|
memcpy(buf, &args->file, sizeof(args->file));
|
||||||
|
memcpy(buf + sizeof(args->file), &args->offset, sizeof(args->offset));
|
||||||
|
memcpy(buf + sizeof(args->file) + sizeof(args->offset), &args->whence, sizeof(args->whence));
|
||||||
}
|
}
|
||||||
|
|
||||||
int esp_apptrace_fseek(esp_apptrace_dest_t dest, void *stream, long offset, int whence)
|
int esp_apptrace_fseek(esp_apptrace_dest_t dest, void *stream, long offset, int whence)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user