File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,14 @@ fn main() -> Result<()> {
161
161
|| argv[ 0 ] . ends_with ( "jsfuzz" ) )
162
162
{
163
163
"casr-js"
164
+ } else if hint == "lua"
165
+ || hint == "auto"
166
+ && ( argv[ 0 ] . ends_with ( ".lua" )
167
+ || argv[ 0 ] == "lua"
168
+ || argv[ 0 ] == "luajit"
169
+ || argv. len ( ) > 1 && argv[ 1 ] . ends_with ( ".lua" ) )
170
+ {
171
+ "casr-lua"
164
172
} else {
165
173
let sym_list = util:: symbols_list ( Path :: new ( argv[ 0 ] ) ) ?;
166
174
if hint == "san"
@@ -203,7 +211,7 @@ fn main() -> Result<()> {
203
211
// Get input file argument index.
204
212
let at_index = if let Some ( idx) = argv. iter ( ) . skip ( 1 ) . position ( |s| s. contains ( "@@" ) ) {
205
213
Some ( idx + 1 )
206
- } else if is_libafl_based {
214
+ } else if is_libafl_based || tool . eq ( "casr-lua" ) {
207
215
None
208
216
} else {
209
217
argv. push ( "@@" ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl<'a> CrashInfo {
51
51
} else {
52
52
args. push ( format ! ( "{}.casrep" , report_path. display( ) ) ) ;
53
53
}
54
- if self . at_index . is_none ( ) {
54
+ if self . at_index . is_none ( ) || self . at_index == Some ( 0 ) {
55
55
args. push ( "--stdin" . to_string ( ) ) ;
56
56
args. push ( self . path . to_str ( ) . unwrap ( ) . to_string ( ) ) ;
57
57
}
You can’t perform that action at this time.
0 commit comments