]> sigrok.org Git - libsigrok.git/commit
session: allocate correct amount of memory in sr_packet_copy
authorWolfram Sang <redacted>
Sun, 21 Feb 2016 09:06:10 +0000 (10:06 +0100)
committerUwe Hermann <redacted>
Sun, 28 Feb 2016 17:21:18 +0000 (18:21 +0100)
commitb84f91ff2ea924c5662d38034b3754d9a37265d4
tree5d5cfe5e7e897297b218bd9346209f9aa5946e9c
parent2217be1dd452ec00ac3c59e2db60f6b088593761
session: allocate correct amount of memory in sr_packet_copy

We want the size of the struct, not of a pointer to the struct. And to
be absolutely future proof, dereference the pointer we are assigning the
memory to (not the one we are copying the data from). Found by Coverity,
CID 50858.

Signed-off-by: Wolfram Sang <redacted>
src/session.c