Skip to content

Commit

Permalink
Emit the code suffix before the footer during lifting
Browse files Browse the repository at this point in the history
The footer contains things like the CRASH INFO splat and we probably
always want that at the end of the file, after any code suffix.
  • Loading branch information
Samuel Groß committed Feb 27, 2024
1 parent 03944a2 commit 5f268e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Fuzzilli/Lifting/JavaScriptLifter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1301,12 +1301,12 @@ public class JavaScriptLifter: Lifter {
w.emitBlock(JavaScriptProbeLifting.suffixCode)
}

w.emitBlock(suffix)

if options.contains(.includeComments), let footer = program.comments.at(.footer) {
w.emitComment(footer)
}

w.emitBlock(suffix)

return w.code
}

Expand Down

0 comments on commit 5f268e1

Please sign in to comment.