extcap: fix heap-use-after free after saving prefs
authorPeter Wu <peter@lekensteyn.nl>
Fri, 16 Sep 2016 15:05:55 +0000 (17:05 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Sat, 17 Sep 2016 10:44:23 +0000 (10:44 +0000)
commit2c33f74bc68c0356eb44a11918d690ac8f26ab63
tree6864b150058ac0ca83ca21a6707a6e114a881972
parent05ae6a7560a8f39daac073d2094fdcde6975a4ec
extcap: fix heap-use-after free after saving prefs

All strings passed to prefs must be valid for the lifetime of the
program (before prefs_cleanup is called). Use wmem for this purpose.
Fixes v2.3.0rc0-660-g26bf66f

Change-Id: I94f3bbb8ac6e18ae59d6462525f6bbc46fdb0f1f
Reviewed-on: https://code.wireshark.org/review/17737
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
extcap.c