summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2010-10-08 11:39:52 -0400
committerDavid Golden <dagolden@cpan.org>2010-10-08 11:53:20 -0400
commit5de8bffdbc0d73b6750568e36033f7168cd88f51 (patch)
treea67b09b9ffcf76a37d90caf843615285c6c33690 /embed.fnc
parente771aaa95f65a9c44af94b9391ba49f4fcbfda43 (diff)
downloadperl-5de8bffdbc0d73b6750568e36033f7168cd88f51.tar.gz
Change vverify() to return HV or NULL (RT#78286)
Multiple code paths were dereferencing version objects without checking the underlying type, which could result in segmentation faults per RT#78286 This patch consolidates all dereferencing into vverify() and has vverify return the underlying HV or NULL instead of a boolean value.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 704a5ddf32..6bdc12f221 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -853,7 +853,7 @@ Apd |const char* |prescan_version |NN const char *s\
|NULLOK int *ssaw_decimal|NULLOK int *swidth|NULLOK bool *salpha
Apd |SV* |new_version |NN SV *ver
Apd |SV* |upg_version |NN SV *ver|bool qv
-Apd |bool |vverify |NN SV *vs
+Apd |SV* |vverify |NN SV *vs
Apd |SV* |vnumify |NN SV *vs
Apd |SV* |vnormal |NN SV *vs
Apd |SV* |vstringify |NN SV *vs