Skip to content

Commit 18fe83d

Browse files
committed
adds a new config parameters for footer instead of using existing one. Made double free when deleting config
1 parent 78ed831 commit 18fe83d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

search/carver/carver.i

+9-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class CARVER(Module):
9797
self.conf.addArgument({"name": "file",
9898
"description": "file used by carver",
9999
"input": Argument.Required|Argument.Single|typeId.Node})
100-
101100
needle = Argument("needle", Argument.Required|Argument.Single|typeId.String, "represents the needle to search in the haystack")
102101
needle.thisown = False
103102

@@ -113,6 +112,15 @@ class CARVER(Module):
113112
header.addSubArgument(size)
114113
header.thisown = False
115114

115+
needle = Argument("needle", Argument.Required|Argument.Single|typeId.String, "represents the needle to search in the haystack")
116+
needle.thisown = False
117+
118+
wildcard = Argument("wildcard", Argument.Required|Argument.Single|typeId.Char, "represents wildcard character used to match anything")
119+
wildcard.thisown = False
120+
121+
size = Argument("size", Argument.Required|Argument.Single|typeId.UInt32, "size of the needle. Needed in order to take into account \0")
122+
size.thisown = False
123+
116124
footer = Argument("footer", Argument.Optional|Argument.Single|typeId.Argument, "represents the footer, generally corresponding to the ending magic value")
117125
footer.addSubArgument(needle)
118126
footer.addSubArgument(wildcard)

0 commit comments

Comments
 (0)