aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_dfilter
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-09-28 16:59:25 +0100
committerJohn Thacker <johnthacker@gmail.com>2023-09-28 16:14:15 +0000
commit07f6b8d9346bdc30c1ef266eea98c4a4ee721349 (patch)
tree4fc4113831e3cb3b99bbf63401ae2d1462d94b18 /test/suite_dfilter
parent37568f2fb8c8fe8c2267510bf1361e1504cfd1cc (diff)
dfilter: Fix use-after-free
The pointer "s" is no longer valid when the warning is added. Fix the use-after-free. Add a test for the warning.
Diffstat (limited to 'test/suite_dfilter')
-rw-r--r--test/suite_dfilter/group_string.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_string.py b/test/suite_dfilter/group_string.py
index 933dca32d8..96f5c525ec 100644
--- a/test/suite_dfilter/group_string.py
+++ b/test/suite_dfilter/group_string.py
@@ -186,6 +186,10 @@ class TestDfilterString:
dfilter = 'tcp.checksum.status matches "unverified|good"'
checkDFilterCount(dfilter, 1)
+ def test_value_string_3(self, checkDFilterSucceed):
+ dfilter = 'tcp.checksum.status == Unverified'
+ checkDFilterSucceed(dfilter, 'Writing value strings without double quotes is deprecated')
+
class TestDfilterStringz:
trace_file = "tftp.pcap"