fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

may remove this assert

Open turboliner opened this issue 2 years ago • 0 comments

    /// Emit one line of code.
    mutating func emit<S: StringProtocol>(_ line: S) {
        assert(!line.contains("\n"))       // <--------- 
        currentLineNumber += 1
        if includeLineNumbers { code += "\(String(format: "%3i", currentLineNumber)). " }
        code += currentIndention + line + "\n"
    }

sometimes, TemplateLiteral expression may contains multiples line, that assert seems not to must.

https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/Lifting/ScriptWriter.swift#L44

turboliner avatar Mar 11 '24 08:03 turboliner