diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2018-03-03 19:49:22 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-03-04 07:48:52 +0000 |
commit | 177962a5b4a05759b40fb6fc07a4a6eec306a9bf (patch) | |
tree | a3b06bb276b86189d5ebbb8a384d147b55cb8ec7 /debian | |
parent | b70eb189bb906d0b03ca95219a4c9c82eee43f97 (diff) |
enip: use wmem for copied addresses
When we copy an address from pinfo into connInfo->O2T.ipaddress, a
shallow copy is not sufficient. connInfo->O2T.ipaddress is kept across
packets whereas pinfo is valid only for the current packet.
Use wmem with file scope for the copied address. This fixes a
use-after-free error when we access the address in a subsequent packet.
Bug: 14470
Change-Id: I8b74037020189485485a506af6510cb45828e3c4
Reviewed-on: https://code.wireshark.org/review/26248
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions