In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/ff5314c5aa54b172122507017cac034acf1c4bf7?hp=ec015202b887bc1ede4b6538364b88eb80c4956d>

- Log -----------------------------------------------------------------
commit ff5314c5aa54b172122507017cac034acf1c4bf7
Author: Reini Urban <[email protected]>
Date:   Tue Oct 7 15:44:27 2014 +1100

    fix attributes memcmp without len<6 (asan catch)
-----------------------------------------------------------------------

Summary of changes:
 ext/attributes/attributes.pm | 2 +-
 ext/attributes/attributes.xs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/attributes/attributes.pm b/ext/attributes/attributes.pm
index ebca214..6ca9ce5 100644
--- a/ext/attributes/attributes.pm
+++ b/ext/attributes/attributes.pm
@@ -1,6 +1,6 @@
 package attributes;
 
-our $VERSION = 0.23;
+our $VERSION = 0.24;
 
 @EXPORT_OK = qw(get reftype);
 @EXPORT = ();
diff --git a/ext/attributes/attributes.xs b/ext/attributes/attributes.xs
index 6b36812..c131734 100644
--- a/ext/attributes/attributes.xs
+++ b/ext/attributes/attributes.xs
@@ -97,7 +97,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV 
**attrlist, int numattrs)
            }
            break;
        default:
-           if (memEQs(name, len, "shared")) {
+           if (len == 6 && memEQs(name, len, "shared")) {
                        if (negated)
                            Perl_croak(aTHX_ "A variable may not be unshared");
                        SvSHARE(sv);

--
Perl5 Master Repository

Reply via email to