You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building for debugging...
/home/kali/Fuzz/fuzzilli/Sources/Fuzzilli/Lifting/WasmLifter.swift:595:55: error: cannot call value of non-function type'Int'let numDefinedTablesWithEntries = self.tables.count { instruction in
^
error: fatalError
The Array.count with a predicate function was added in 6.0.x1, are you sure you compiled with 6.0.3?
(I ran into the same issue when the change landed and updating to 6.0.3 fixed the compile error.)
As a workround you could replace the code in question with:
letnumDefinedTablesWithEntries=self.tables.filter{ instruction in
!(instruction.op as!WasmDefineTable).definedEntryIndices.isEmpty
}.count
Activity
Liedtke commentedon Feb 8, 2025
The
Array.countwith a predicate function was added in 6.0.x1, are you sure you compiled with 6.0.3?(I ran into the same issue when the change landed and updating to 6.0.3 fixed the compile error.)
As a workround you could replace the code in question with:
Footnotes
Unfortunately the Swift documentation doesn't seem to document this. ↩
diaoqi129 commentedon Feb 12, 2025
i meet the same question when build fuzzilli in swift 5.9
shopifyjohncoulter-code commentedon Nov 13, 2025
the build issue were fixed in
Swift 6.2.1, let me check that.