summaryrefslogtreecommitdiff
path: root/proto.h
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 /proto.h
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 'proto.h')
-rw-r--r--proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 999762f32a..fffbdca52f 100644
--- a/proto.h
+++ b/proto.h
@@ -4635,7 +4635,7 @@ PERL_CALLCONV SV* Perl_vstringify(pTHX_ SV *vs)
#define PERL_ARGS_ASSERT_VSTRINGIFY \
assert(vs)
-PERL_CALLCONV bool Perl_vverify(pTHX_ SV *vs)
+PERL_CALLCONV SV* Perl_vverify(pTHX_ SV *vs)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_VVERIFY \
assert(vs)