mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Don't resume/suspend vars containing pointers.
This commit is contained in:
1 parent
d5c8e20268
commit
10b7d5a031
7 files changed
+78
-38
No files matched your search
@@ -151,6 +151,9 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
|
||||
if block_size == 0 {
|
||||
break
|
||||
}
|
||||
// TODO: how should this reader1-typed variable (which is implemented
|
||||
// by containing pointers) work across resume/suspend? We don't want to
|
||||
// have a dangling pointer to an earlier src buffer.
|
||||
var lzw_src reader1 = limit (block_size as u64) in.src
|
||||
this.lzw.decode?(dst:in.dst, src:lzw_src)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user