mirror of
https://github.com/status-im/nimPNG.git
synced 2025-02-11 03:56:28 +00:00
10 lines
228 B
Nim
10 lines
228 B
Nim
import testutils/fuzzing, ../nimPNG
|
|
|
|
proc toString(x: openArray[byte]): string =
|
|
result = newString(x.len)
|
|
if x.len != 0:
|
|
copyMem(result[0].addr, x[0].unsafeAddr, x.len)
|
|
|
|
test:
|
|
let png = decodePNG32(toString(payload))
|