In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/2f54119d20adde7812afae1aa17e80481871bc2f?hp=b219737899b7744755182cf4dadebfabb21e24bc>
- Log ----------------------------------------------------------------- commit 2f54119d20adde7812afae1aa17e80481871bc2f Author: Chris 'BinGOs' Williams <[email protected]> Date: Sun Nov 25 17:39:29 2012 +0000 Update Compress-Raw-Zlib to CPAN version 2.059 [DELTA] 2.059 24 November 2012 * Copy-on-write support [#81353] M Porting/Maintainers.pl M cpan/Compress-Raw-Zlib/Changes M cpan/Compress-Raw-Zlib/README M cpan/Compress-Raw-Zlib/Zlib.xs M cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm commit ae48cd005ca79179175ad324e832a74269fc746b Author: Chris 'BinGOs' Williams <[email protected]> Date: Sun Nov 25 17:38:06 2012 +0000 Update Compress-Raw-Bzip2 to CPAN version 2.059 [DELTA] 2.059 24 November 2012 * Copy-on-write support [#81352] M Porting/Maintainers.pl M cpan/Compress-Raw-Bzip2/Bzip2.xs M cpan/Compress-Raw-Bzip2/Changes M cpan/Compress-Raw-Bzip2/README M cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm M cpan/Compress-Raw-Bzip2/t/000prereq.t commit ab2aaaf441daa1a553b795d595da60aa52091a3d Author: Chris 'BinGOs' Williams <[email protected]> Date: Sun Nov 25 17:36:18 2012 +0000 Update Digest-SHA to CPAN version 5.74 [DELTA] 5.74 Sat Nov 24 03:10:18 MST 2012 - handle wide-string input by converting to bytes first -- viz. use SvPVbyte instead of SvPV in SHA.xs -- thanks to Eric Brine for summary and code M Porting/Maintainers.pl M cpan/Digest-SHA/Changes M cpan/Digest-SHA/README M cpan/Digest-SHA/SHA.xs M cpan/Digest-SHA/lib/Digest/SHA.pm M cpan/Digest-SHA/shasum M cpan/Digest-SHA/src/hmac.c M cpan/Digest-SHA/src/hmac.h M cpan/Digest-SHA/src/sha.c M cpan/Digest-SHA/src/sha.h ----------------------------------------------------------------------- Summary of changes: Porting/Maintainers.pl | 6 +++--- cpan/Compress-Raw-Bzip2/Bzip2.xs | 8 ++++++-- cpan/Compress-Raw-Bzip2/Changes | 5 +++++ cpan/Compress-Raw-Bzip2/README | 6 +++--- cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm | 2 +- cpan/Compress-Raw-Bzip2/t/000prereq.t | 2 +- cpan/Compress-Raw-Zlib/Changes | 5 +++++ cpan/Compress-Raw-Zlib/README | 6 +++--- cpan/Compress-Raw-Zlib/Zlib.xs | 12 ++++++++---- cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm | 2 +- cpan/Digest-SHA/Changes | 5 +++++ cpan/Digest-SHA/README | 2 +- cpan/Digest-SHA/SHA.xs | 12 ++++++++---- cpan/Digest-SHA/lib/Digest/SHA.pm | 2 +- cpan/Digest-SHA/shasum | 6 +++--- cpan/Digest-SHA/src/hmac.c | 4 ++-- cpan/Digest-SHA/src/hmac.h | 4 ++-- cpan/Digest-SHA/src/sha.c | 4 ++-- cpan/Digest-SHA/src/sha.h | 4 ++-- 19 files changed, 62 insertions(+), 35 deletions(-) diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index d70cf45..f395c94 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -363,7 +363,7 @@ use File::Glob qw(:case); 'Compress::Raw::Bzip2' => { 'MAINTAINER' => 'pmqs', - 'DISTRIBUTION' => 'PMQS/Compress-Raw-Bzip2-2.058.tar.gz', + 'DISTRIBUTION' => 'PMQS/Compress-Raw-Bzip2-2.059.tar.gz', 'FILES' => q[cpan/Compress-Raw-Bzip2], 'EXCLUDED' => [ qr{^t/Test/}, @@ -374,7 +374,7 @@ use File::Glob qw(:case); 'Compress::Raw::Zlib' => { 'MAINTAINER' => 'pmqs', - 'DISTRIBUTION' => 'PMQS/Compress-Raw-Zlib-2.058.tar.gz', + 'DISTRIBUTION' => 'PMQS/Compress-Raw-Zlib-2.059.tar.gz', 'FILES' => q[cpan/Compress-Raw-Zlib], 'EXCLUDED' => [ @@ -594,7 +594,7 @@ use File::Glob qw(:case); 'Digest::SHA' => { 'MAINTAINER' => 'mshelor', - 'DISTRIBUTION' => 'MSHELOR/Digest-SHA-5.73.tar.gz', + 'DISTRIBUTION' => 'MSHELOR/Digest-SHA-5.74.tar.gz', 'FILES' => q[cpan/Digest-SHA], 'EXCLUDED' => [ qw( t/pod.t diff --git a/cpan/Compress-Raw-Bzip2/Bzip2.xs b/cpan/Compress-Raw-Bzip2/Bzip2.xs index d430b24..ef19280 100644 --- a/cpan/Compress-Raw-Bzip2/Bzip2.xs +++ b/cpan/Compress-Raw-Bzip2/Bzip2.xs @@ -724,6 +724,7 @@ bzinflate (s, buf, output) uInt prefix_length = 0; uInt increment = 0; uInt bufinc = NO_INIT + STRLEN na = NO_INIT ; PREINIT: #ifdef UTF8_AVAILABLE bool out_utf8 = FALSE; @@ -733,8 +734,11 @@ bzinflate (s, buf, output) /* If the buffer is a reference, dereference it */ buf = deRef(buf, "bzinflate") ; - if (s->flags & FLAG_CONSUME_INPUT && SvREADONLY(buf)) - croak(UNCOMPRESS_CLASS "::bzinflate input parameter cannot be read-only when ConsumeInput is specified"); + if (s->flags & FLAG_CONSUME_INPUT) { + if (SvREADONLY(buf)) + croak(UNCOMPRESS_CLASS "::bzinflate input parameter cannot be read-only when ConsumeInput is specified"); + SvPV_force(buf, na); + } #ifdef UTF8_AVAILABLE if (DO_UTF8(buf) && !sv_utf8_downgrade(buf, 1)) croak("Wide character in " UNCOMPRESS_CLASS "::bzinflate input parameter"); diff --git a/cpan/Compress-Raw-Bzip2/Changes b/cpan/Compress-Raw-Bzip2/Changes index 3a8882f..583a88f 100644 --- a/cpan/Compress-Raw-Bzip2/Changes +++ b/cpan/Compress-Raw-Bzip2/Changes @@ -1,6 +1,11 @@ CHANGES ------- + 2.059 24 November 2012 + + * Copy-on-write support + [#81352] + 2.058 12 November 2012 * No Changes diff --git a/cpan/Compress-Raw-Bzip2/README b/cpan/Compress-Raw-Bzip2/README index 6f3d8c4..6475aa2 100644 --- a/cpan/Compress-Raw-Bzip2/README +++ b/cpan/Compress-Raw-Bzip2/README @@ -1,9 +1,9 @@ Compress-Raw-Bzip2 - Version 2.058 + Version 2.059 - 12th November 2012 + 25th November 2012 Copyright (c) 2005-2012 Paul Marquess. All rights reserved. This program is free software; you can redistribute it @@ -164,7 +164,7 @@ To help me help you, I need all of the following information: If you haven't installed Compress-Raw-Bzip2 then search Compress::Raw::Bzip2.pm for a line like this: - $VERSION = "2.058" ; + $VERSION = "2.059" ; c. The version of bzip2 you have used. If you have successfully installed Compress-Raw-Bzip2, this one-liner diff --git a/cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm b/cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm index 7d04fe5..450fa42 100644 --- a/cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm +++ b/cpan/Compress-Raw-Bzip2/lib/Compress/Raw/Bzip2.pm @@ -12,7 +12,7 @@ use Carp ; use bytes ; our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD); -$VERSION = '2.058'; +$VERSION = '2.059'; $XS_VERSION = $VERSION; $VERSION = eval $VERSION; diff --git a/cpan/Compress-Raw-Bzip2/t/000prereq.t b/cpan/Compress-Raw-Bzip2/t/000prereq.t index a485cf3..f5186e9 100644 --- a/cpan/Compress-Raw-Bzip2/t/000prereq.t +++ b/cpan/Compress-Raw-Bzip2/t/000prereq.t @@ -19,7 +19,7 @@ BEGIN if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 }; - my $VERSION = '2.058'; + my $VERSION = '2.059'; my @NAMES = qw( ); diff --git a/cpan/Compress-Raw-Zlib/Changes b/cpan/Compress-Raw-Zlib/Changes index a6014fc..0dfbc11 100644 --- a/cpan/Compress-Raw-Zlib/Changes +++ b/cpan/Compress-Raw-Zlib/Changes @@ -1,6 +1,11 @@ CHANGES ------- + 2.059 24 November 2012 + + * Copy-on-write support + [#81353] + 2.058 12 November 2012 * No Changes diff --git a/cpan/Compress-Raw-Zlib/README b/cpan/Compress-Raw-Zlib/README index 6970726..4368080 100644 --- a/cpan/Compress-Raw-Zlib/README +++ b/cpan/Compress-Raw-Zlib/README @@ -1,9 +1,9 @@ Compress-Raw-Zlib - Version 2.058 + Version 2.059 - 12th November 2012 + 25th November 2012 Copyright (c) 2005-2012 Paul Marquess. All rights reserved. This program is free software; you can redistribute it @@ -355,7 +355,7 @@ To help me help you, I need all of the following information: If you haven't installed Compress-Raw-Zlib then search Compress::Raw::Zlib.pm for a line like this: - $VERSION = "2.058" ; + $VERSION = "2.059" ; c. The version of zlib you have used. If you have successfully installed Compress-Raw-Zlib, this one-liner diff --git a/cpan/Compress-Raw-Zlib/Zlib.xs b/cpan/Compress-Raw-Zlib/Zlib.xs index c6558c0..00e05b4 100644 --- a/cpan/Compress-Raw-Zlib/Zlib.xs +++ b/cpan/Compress-Raw-Zlib/Zlib.xs @@ -1323,18 +1323,22 @@ inflate (s, buf, output, eof=FALSE) uInt cur_length = 0; uInt prefix_length = 0; int increment = 0; - uLong bufinc = NO_INIT + uLong bufinc = NO_INIT + STRLEN na = NO_INIT ; PREINIT: #ifdef UTF8_AVAILABLE bool out_utf8 = FALSE; #endif - CODE: + CODE: bufinc = s->bufsize; /* If the buffer is a reference, dereference it */ buf = deRef(buf, "inflate") ; - if (s->flags & FLAG_CONSUME_INPUT && SvREADONLY(buf)) - croak("Compress::Raw::Zlib::Inflate::inflate input parameter cannot be read-only when ConsumeInput is specified"); + if (s->flags & FLAG_CONSUME_INPUT) { + if (SvREADONLY(buf)) + croak("Compress::Raw::Zlib::Inflate::inflate input parameter cannot be read-only when ConsumeInput is specified"); + SvPV_force(buf, na); + } #ifdef UTF8_AVAILABLE if (DO_UTF8(buf) && !sv_utf8_downgrade(buf, 1)) croak("Wide character in Compress::Raw::Zlib::Inflate::inflate input parameter"); diff --git a/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm b/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm index a3063ce..c1ba827 100644 --- a/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm +++ b/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm @@ -11,7 +11,7 @@ use warnings ; use bytes ; our ($VERSION, $XS_VERSION, @ISA, @EXPORT, %EXPORT_TAGS, @EXPORT_OK, $AUTOLOAD, %DEFLATE_CONSTANTS, @DEFLATE_CONSTANTS ); -$VERSION = '2.058'; +$VERSION = '2.059'; $XS_VERSION = $VERSION; $VERSION = eval $VERSION; diff --git a/cpan/Digest-SHA/Changes b/cpan/Digest-SHA/Changes index f0fb0c4..0651b77 100644 --- a/cpan/Digest-SHA/Changes +++ b/cpan/Digest-SHA/Changes @@ -1,5 +1,10 @@ Revision history for Perl extension Digest::SHA. +5.74 Sat Nov 24 03:10:18 MST 2012 + - handle wide-string input by converting to bytes first + -- viz. use SvPVbyte instead of SvPV in SHA.xs + -- thanks to Eric Brine for summary and code + 5.73 Wed Oct 31 04:32:44 MST 2012 - provided workaround for DEC compiler bug (ref. Makefile.PL) diff --git a/cpan/Digest-SHA/README b/cpan/Digest-SHA/README index cf04631..acae6e4 100644 --- a/cpan/Digest-SHA/README +++ b/cpan/Digest-SHA/README @@ -1,4 +1,4 @@ -Digest::SHA version 5.73 +Digest::SHA version 5.74 ======================== Digest::SHA is a complete implementation of the NIST Secure Hash diff --git a/cpan/Digest-SHA/SHA.xs b/cpan/Digest-SHA/SHA.xs index 8124a5d..cb89152 100644 --- a/cpan/Digest-SHA/SHA.xs +++ b/cpan/Digest-SHA/SHA.xs @@ -2,6 +2,10 @@ #include "perl.h" #include "XSUB.h" +#ifndef SvPVbyte +#define SvPVbyte SvPV +#endif + #include "src/sha.c" #include "src/hmac.c" @@ -87,7 +91,7 @@ PPCODE: if ((state = shaopen(ix2alg[ix])) == NULL) XSRETURN_UNDEF; for (i = 0; i < items; i++) { - data = (unsigned char *) (SvPV(ST(i), len)); + data = (unsigned char *) (SvPVbyte(ST(i), len)); while (len > MAX_WRITE_SIZE) { shawrite(data, MAX_WRITE_SIZE << 3, state); data += MAX_WRITE_SIZE; @@ -141,11 +145,11 @@ PREINIT: HMAC *state; char *result; PPCODE: - key = (unsigned char *) (SvPV(ST(items-1), len)); + key = (unsigned char *) (SvPVbyte(ST(items-1), len)); if ((state = hmacopen(ix2alg[ix], key, len)) == NULL) XSRETURN_UNDEF; for (i = 0; i < items - 1; i++) { - data = (unsigned char *) (SvPV(ST(i), len)); + data = (unsigned char *) (SvPVbyte(ST(i), len)); while (len > MAX_WRITE_SIZE) { hmacwrite(data, MAX_WRITE_SIZE << 3, state); data += MAX_WRITE_SIZE; @@ -193,7 +197,7 @@ PREINIT: PPCODE: state = INT2PTR(SHA *, SvIV(SvRV(SvRV(self)))); for (i = 1; i < items; i++) { - data = (unsigned char *) (SvPV(ST(i), len)); + data = (unsigned char *) (SvPVbyte(ST(i), len)); while (len > MAX_WRITE_SIZE) { shawrite(data, MAX_WRITE_SIZE << 3, state); data += MAX_WRITE_SIZE; diff --git a/cpan/Digest-SHA/lib/Digest/SHA.pm b/cpan/Digest-SHA/lib/Digest/SHA.pm index a341991..5edaae9 100644 --- a/cpan/Digest-SHA/lib/Digest/SHA.pm +++ b/cpan/Digest-SHA/lib/Digest/SHA.pm @@ -7,7 +7,7 @@ use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); use Fcntl; use integer; -$VERSION = '5.73'; +$VERSION = '5.74'; require Exporter; require DynaLoader; diff --git a/cpan/Digest-SHA/shasum b/cpan/Digest-SHA/shasum index 12d2ca5..643651c 100644 --- a/cpan/Digest-SHA/shasum +++ b/cpan/Digest-SHA/shasum @@ -4,8 +4,8 @@ ## ## Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved ## - ## Version: 5.73 - ## Wed Oct 31 04:32:44 MST 2012 + ## Version: 5.74 + ## Sat Nov 24 03:10:18 MST 2012 ## shasum SYNOPSIS adapted from GNU Coreutils sha1sum. ## Add an "-a" option for algorithm selection, a "-p" @@ -97,7 +97,7 @@ use strict; use Fcntl; use Getopt::Long; -my $VERSION = "5.73"; +my $VERSION = "5.74"; ## Try to use Digest::SHA. If not installed, use the slower diff --git a/cpan/Digest-SHA/src/hmac.c b/cpan/Digest-SHA/src/hmac.c index c6ab0a0..2a429de 100644 --- a/cpan/Digest-SHA/src/hmac.c +++ b/cpan/Digest-SHA/src/hmac.c @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved * - * Version: 5.73 - * Wed Oct 31 04:32:44 MST 2012 + * Version: 5.74 + * Sat Nov 24 03:10:18 MST 2012 * */ diff --git a/cpan/Digest-SHA/src/hmac.h b/cpan/Digest-SHA/src/hmac.h index 99d6502..f45dbe5 100644 --- a/cpan/Digest-SHA/src/hmac.h +++ b/cpan/Digest-SHA/src/hmac.h @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved * - * Version: 5.73 - * Wed Oct 31 04:32:44 MST 2012 + * Version: 5.74 + * Sat Nov 24 03:10:18 MST 2012 * */ diff --git a/cpan/Digest-SHA/src/sha.c b/cpan/Digest-SHA/src/sha.c index d4d8862..2b250fb 100644 --- a/cpan/Digest-SHA/src/sha.c +++ b/cpan/Digest-SHA/src/sha.c @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved * - * Version: 5.73 - * Wed Oct 31 04:32:44 MST 2012 + * Version: 5.74 + * Sat Nov 24 03:10:18 MST 2012 * */ diff --git a/cpan/Digest-SHA/src/sha.h b/cpan/Digest-SHA/src/sha.h index a27b566..8fe8598 100644 --- a/cpan/Digest-SHA/src/sha.h +++ b/cpan/Digest-SHA/src/sha.h @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved * - * Version: 5.73 - * Wed Oct 31 04:32:44 MST 2012 + * Version: 5.74 + * Sat Nov 24 03:10:18 MST 2012 * */ -- Perl5 Master Repository
