CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

nervosnetwork/ckb-vm-contrib

Lessons from nervosnetwork/ckb-vm-contrib

github.com/nervosnetwork/ckb-vm-contrib

Do you maintain this project? Confirm its lessons in one issue

1 lessons found. All lessons

Mock syscalls must write back output lengthAdvancedFrom one fix

When a ckb-vm mock or fuzzing syscall layer implements inherited_fds, it must store the fd count back into length_addr with store64 after writing the fd buffer. Otherwise the script reads back the capacity it passed in and treats unwritten slots as fds. ckb-vm-contrib's fuzzing utils lacked this until v1.1.2.

#Testing and devnet · Sources (1) · 2026-11-16

Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.