fuzz fix
This commit is contained in:
parent
dd2571d3a6
commit
871740a95e
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ proc decodeJpeg*(data: string): Image {.raises: [PixieError].} =
|
|||
## Decodes the JPEG into an Image.
|
||||
|
||||
var state = DecoderState()
|
||||
state.buffer = cast[ptr UncheckedArray[uint8]](data[0].unsafeAddr)
|
||||
state.buffer = cast[ptr UncheckedArray[uint8]](data.cstring)
|
||||
state.len = data.len
|
||||
|
||||
while true:
|
||||
|
|
Loading…
Reference in a new issue