mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-03 21:36:25 +00:00
res_APDU SHALL NOT BE moved, only memcpied or memmoved.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
8554262aaf
commit
1ac4402f99
1 changed files with 2 additions and 1 deletions
|
|
@ -461,7 +461,8 @@ static int cmd_read_binary()
|
|||
if (apdu.ne > maxle)
|
||||
apdu.ne = maxle;
|
||||
if (offset) {
|
||||
res_APDU += offset;
|
||||
memmove(res_APDU, res_APDU+offset, res_APDU_size-offset);
|
||||
//res_APDU += offset;
|
||||
res_APDU_size -= offset;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue