My guess would be this is because the SV created with nevSV(0) doesn't yet have a LEN field.
It doesn't have a body at all.
Using newSV_type(SVt_PV) instead fixed the issue (AFAICT), i.e.
Shorter: [ nevermind, that'll copy the vector instead of uisng it. ]
newSVpvn(vector, bytes)
In reply to Re^2: [I::C] Why does it segfault?
by ikegami
in thread [I::C] Why does it segfault?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |