Skip to content

Commit ebdad9b

Browse files
committed
Fix handling of undef, ref, typeglob, UTF8, COW and magic scalar argument in all XS functions
Before this patch every function XS function did it differently and not every one correctly. Now SvPV_force_nomg() is used when source argument is going to be modified. SvGETMAGIC() is called when entering into functions and then only "nomg" variants of perl functions are used to prevent processing get magic more times. SvSETMAGIC() is called after modification of source argument. This fixes bugs: https://rt.cpan.org/Public/Bug/Display.html?id=117158 https://rt.cpan.org/Public/Bug/Display.html?id=85489 dankogai#66
1 parent 0da896b commit ebdad9b

File tree

6 files changed

+380
-125
lines changed

6 files changed

+380
-125
lines changed

0 commit comments

Comments
 (0)