This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
4 years agomake PADOFFSET be SSizet_t
David Mitchell [Mon, 26 Sep 2016 14:22:25 +0000 (15:22 +0100)]
make PADOFFSET be SSizet_t

Currently it's defined as U32 or U64 depending on whether pointers are
32 bit or 64-bit, which is just a long-winded way of doing

    typedef Size_t PADOFFSET

Change it to

    typedef SSize_t PADOFFSET

Making it signed makes it easier to handle comparisons against PADOFFSET
values that can be -1, such as PL_comppad_name_floor (which will be fixed
in the next commit).

4 years agoremove a bunch of XXX's from pad.c
David Mitchell [Mon, 26 Sep 2016 14:04:21 +0000 (15:04 +0100)]
remove a bunch of XXX's from pad.c

When in 2002 I moved a bunch of code from op.c etc into a new file,
pad.c, I left this comment at the top:

    /* XXX DAPM
     * As of Sept 2002, this file is new and may be in a state of flux for
     * a while. I've marked things I intent to come back and look at further
     * with an 'XXX DAPM' comment.
     */

Well, 12 years have passed since then, and if I was going to do any of
this stuff I would probably have done it by now, or someone else would.

So this commit removes the XXX's.

4 years agopad.c comments: clarify PERL_PADSEQ_INTRO
David Mitchell [Mon, 26 Sep 2016 13:59:26 +0000 (14:59 +0100)]
pad.c comments: clarify PERL_PADSEQ_INTRO

4 years agoadd a test for gv_try_downgrade()
David Mitchell [Wed, 21 Sep 2016 08:22:13 +0000 (09:22 +0100)]
add a test for gv_try_downgrade()

Previously, making gv_try_downgrade() just immediately return didn't cause
any tests to fail.

4 years agofix builds under USE_PAD_RESET
David Mitchell [Tue, 20 Sep 2016 08:45:07 +0000 (09:45 +0100)]
fix builds under USE_PAD_RESET

It had suffered some bitrot.

4 years agoCentralize definitions of MIN, MAX
Karl Williamson [Wed, 21 Sep 2016 22:15:08 +0000 (16:15 -0600)]
Centralize definitions of MIN, MAX

Instead of having each file have them, keep them in handy.h, but only
for core compilations.

4 years agoAdd is_utf8_fixed_width_buf_flags() and use it
Karl Williamson [Mon, 26 Sep 2016 04:04:08 +0000 (22:04 -0600)]
Add is_utf8_fixed_width_buf_flags() and use it

This encodes a simple pattern that may not be immediately obvious to
someone needing it.  If you have a fixed-size buffer that is full of
purportedly UTF-8 bytes, is it valid or not?  It's easy to do, as shown
in this commit.  The file test operators -T and -B can be simpified by
using this function.

4 years agoAdd API Unicode handling functions
Karl Williamson [Mon, 19 Sep 2016 15:59:32 +0000 (09:59 -0600)]
Add API Unicode handling functions

These functions are all extensions of the is_utf8_string_foo()
functions, that restrict the UTF-8 recognized as valid in various ways.
There are named ones for the two definitions that Unicode makes, and
foo_flags ones for more custom restrictions.

The named ones are implemented as tries, while the flags ones provide
complete generality

4 years agoAPItest/t/utf8.t: Rename variable
Karl Williamson [Sun, 25 Sep 2016 16:14:50 +0000 (10:14 -0600)]
APItest/t/utf8.t: Rename variable

The new name is clearer, which will matter more in the next commit

4 years agoXS-APItest/t/utf8.t: Add some tests
Karl Williamson [Tue, 20 Sep 2016 16:12:45 +0000 (10:12 -0600)]
XS-APItest/t/utf8.t: Add some tests

These will help in testing the string functions coming in the next
commit.  These add problematic code points to the first testing loop.
As a result some of the tests in the final loop may be redundant, but
since this .t is quick to run, I chose not to investigate and remove any
such.

4 years agoMove #define to different header
Karl Williamson [Thu, 15 Sep 2016 01:57:46 +0000 (19:57 -0600)]
Move #define to different header

Instead of having a comment in one header pointing to the #define in the
other, remove the indirection and just have the #define itself where it
is needed.

4 years agoperlapi: Clarifications, nits in Unicode support docs
Karl Williamson [Mon, 19 Sep 2016 15:52:57 +0000 (09:52 -0600)]
perlapi: Clarifications, nits in Unicode support docs

This also does a white space change to inline.h

4 years agoperlapi: Minor clarifications to sv_utf8_decode
Karl Williamson [Thu, 15 Sep 2016 15:06:39 +0000 (09:06 -0600)]
perlapi: Minor clarifications to sv_utf8_decode

4 years agoTime-HiRes: bring up-to-date with CPAN.
James E Keenan [Sun, 25 Sep 2016 23:48:52 +0000 (19:48 -0400)]
Time-HiRes: bring up-to-date with CPAN.

The ext3/ext2 filesystems do not have subsecond resolution, therefore skip the
t/utime.t test. [rt.cpan.org #116127]

4 years agopodcheck.t: perlepigraphs: don't note too long verbatims
Karl Williamson [Wed, 21 Sep 2016 22:12:50 +0000 (16:12 -0600)]
podcheck.t: perlepigraphs: don't note too long verbatims

These epigraphs may not be foldable properly.  Instead of warning when
new ones are added, ignore this category entirely for this pod.

4 years agomacos Sierra (10.12) hints comment updates.
Jarkko Hietaniemi [Sun, 25 Sep 2016 00:23:36 +0000 (20:23 -0400)]
macos Sierra (10.12) hints comment updates.

4 years agoUpdate for the Module-CoreList that is on teh CPAN
Chris 'BinGOs' Williams [Sat, 24 Sep 2016 22:56:18 +0000 (23:56 +0100)]
Update for the Module-CoreList that is on teh CPAN

4 years agoBump Module-CoreList version for bc46539a
Chris 'BinGOs' Williams [Sat, 24 Sep 2016 22:55:25 +0000 (23:55 +0100)]
Bump Module-CoreList version for bc46539a

4 years agoupdate Module::CoreList
Stevan Little [Sat, 24 Sep 2016 20:22:01 +0000 (22:22 +0200)]
update Module::CoreList

4 years agoupdating opcodes (version number mostly)
Stevan Little [Sat, 24 Sep 2016 19:59:52 +0000 (21:59 +0200)]
updating opcodes (version number mostly)

4 years agobumping the version number
Stevan Little [Sat, 24 Sep 2016 19:57:41 +0000 (21:57 +0200)]
bumping the version number

4 years agoutf8.c: #define MIN if not already defined
Karl Williamson [Wed, 21 Sep 2016 15:46:46 +0000 (09:46 -0600)]
utf8.c: #define MIN if not already defined

This is only used on EBCDIC.

4 years agoChange sv_setpvn(…, "…", …) to sv_setpvs(…, "…")
Dagfinn Ilmari Mannsåker [Wed, 21 Sep 2016 14:38:42 +0000 (15:38 +0100)]
Change sv_setpvn(…, "…", …) to sv_setpvs(…, "…")

The dual-life dists affected use Devel::PPPort, so can safely use
sv_setpvs() even though it wasn't added until Perl v5.10.0.

4 years agoFix typo in perlrun.pod
Steven Humphrey [Tue, 20 Sep 2016 11:42:39 +0000 (12:42 +0100)]
Fix typo in perlrun.pod

s/and/any/
perl -c documentation has a typo when talking about BEGIN blocks.

Steven Humphrey is now a Perl author.

For: RT #129313

4 years agonew perldelta
Stevan Little [Tue, 20 Sep 2016 20:25:11 +0000 (22:25 +0200)]
new perldelta

4 years agoknown pod issues
Stevan Little [Tue, 20 Sep 2016 20:24:16 +0000 (22:24 +0200)]
known pod issues

4 years agoticking the release
Stevan Little [Tue, 20 Sep 2016 20:05:42 +0000 (22:05 +0200)]
ticking the release

4 years agoupdate epigraphs.pod
Stevan Little [Tue, 20 Sep 2016 19:59:20 +0000 (21:59 +0200)]
update epigraphs.pod

4 years agotypo
Sawyer X [Tue, 20 Sep 2016 20:28:42 +0000 (22:28 +0200)]
typo

4 years agoadd new release to perlhist v5.25.5
Stevan Little [Tue, 20 Sep 2016 12:59:00 +0000 (14:59 +0200)]
add new release to perlhist

4 years agofinalize the perldelta
Stevan Little [Tue, 20 Sep 2016 12:54:37 +0000 (14:54 +0200)]
finalize the perldelta

4 years agoUpdate Module::CoreList for 5.25.5
Stevan Little [Tue, 20 Sep 2016 12:34:02 +0000 (14:34 +0200)]
Update Module::CoreList for 5.25.5

4 years agoutf8.c: Fix bug in new _is_utf8_char_helper() function
Karl Williamson [Mon, 19 Sep 2016 21:37:52 +0000 (15:37 -0600)]
utf8.c: Fix bug in new _is_utf8_char_helper() function

This bug was exposed by the tests that I'm still developing

4 years agoMake regexp_nonull.t test patterns without null
Father Chrysostomos [Sun, 18 Sep 2016 19:11:28 +0000 (12:11 -0700)]
Make regexp_nonull.t test patterns without null

It was only testing matches against strings without a trailing
null byte.  Now it also tests compilation of patterns without
a trailing null byte.

4 years agoregcomp.c: S_concat_pat: guard against missing trailing nulls
Yves Orton [Sat, 17 Sep 2016 18:14:53 +0000 (20:14 +0200)]
regcomp.c: S_concat_pat: guard against missing trailing nulls

The regex engine expects the pattern to have a null byte at
SvEND(pat), but is not guaranteed to receive such a pattern
when it is called, so S_concat_pat should guard against this
case. It turns out this is only an issue when there is exactly
one "argument" to the pattern. (Consider concatenation rules, etc).

4 years agosv.c: sv_grow: newlen cannot be smaller than SvCUR()
Yves Orton [Sat, 17 Sep 2016 18:13:23 +0000 (20:13 +0200)]
sv.c: sv_grow: newlen cannot be smaller than SvCUR()

This expression dates back to about 2003 or so, and as
far as I can tell is no longer necessary.

4 years agodoop.c: use sv_setpvn() instead of sv_setpvs()
Yves Orton [Sat, 17 Sep 2016 18:12:26 +0000 (20:12 +0200)]
doop.c: use sv_setpvn() instead of sv_setpvs()

4 years agoperldelta: grammar
Lukas Mai [Mon, 19 Sep 2016 16:13:12 +0000 (18:13 +0200)]
perldelta: grammar

4 years agoCorrect one formatting error in perldelta.pod.
James E Keenan [Mon, 19 Sep 2016 12:19:38 +0000 (08:19 -0400)]
Correct one formatting error in perldelta.pod.

This was causing a failure in t/porting/podcheck.t.

4 years agoworking on perldelta some more
Stevan Little [Sun, 18 Sep 2016 21:53:27 +0000 (23:53 +0200)]
working on perldelta some more

4 years agoperldelta for e426a4af0
Father Chrysostomos [Mon, 19 Sep 2016 03:28:58 +0000 (20:28 -0700)]
perldelta for e426a4af0

4 years agoperldelta for #129287 / b43665
Father Chrysostomos [Mon, 19 Sep 2016 03:27:11 +0000 (20:27 -0700)]
perldelta for #129287 / b43665

4 years agoperldelta: Remove duplicate entry; fix typo
Father Chrysostomos [Mon, 19 Sep 2016 03:24:00 +0000 (20:24 -0700)]
perldelta: Remove duplicate entry; fix typo

I had already documented the perlinterp change.

4 years agobop.t: Delete $SIG{__WARN__}
Father Chrysostomos [Mon, 19 Sep 2016 03:20:06 +0000 (20:20 -0700)]
bop.t: Delete $SIG{__WARN__}

It is only needed for one block of tests.  Leaving the handler in
place makes it harder to add temporary diagnostics elsewhere in
the code.  (Where did my warning go?  Hey, why is ‘warn’ not work-
ing?????!!!! :-)

4 years ago[perl #129287] Make UTF8 & append null
Father Chrysostomos [Mon, 19 Sep 2016 03:17:08 +0000 (20:17 -0700)]
[perl #129287] Make UTF8 & append null

The & and &. operators were not appending a null byte to the string
in utf8 mode.

(The internal function that they use is the same.  I used &. in the
test just because its intent is clearer.)

4 years agoregexp.t: Update comments about column 1
Father Chrysostomos [Sun, 18 Sep 2016 19:19:13 +0000 (12:19 -0700)]
regexp.t: Update comments about column 1

Years out of date!

4 years agoworking on perldelta
Stevan Little [Sun, 18 Sep 2016 15:05:01 +0000 (17:05 +0200)]
working on perldelta

4 years agoperlfunc: re-document old split() @_ side effect
Aristotle Pagaltzis [Sun, 18 Sep 2016 09:53:20 +0000 (11:53 +0200)]
perlfunc: re-document old split() @_ side effect

4 years agoperlsub: scalar split no longer clobbers @_ (RT #129297)
Lukas Mai [Sun, 18 Sep 2016 07:50:16 +0000 (09:50 +0200)]
perlsub: scalar split no longer clobbers @_ (RT #129297)

4 years agoperldelta for new Unicode-handling function.
Karl Williamson [Sun, 18 Sep 2016 03:07:29 +0000 (21:07 -0600)]
perldelta for new Unicode-handling function.

4 years agoperlapi: Clarify docs for some is_utf8_foo functions
Karl Williamson [Thu, 15 Sep 2016 01:49:52 +0000 (19:49 -0600)]
perlapi: Clarify docs for some is_utf8_foo functions

4 years agoAdd isUTF8_CHAR_flags() macro
Karl Williamson [Thu, 15 Sep 2016 00:54:23 +0000 (18:54 -0600)]
Add isUTF8_CHAR_flags() macro

This is like the previous 2 commits, but the macro takes a flags
parameter so any combination of the disallowed flags may be used.  The
others, along with the original isUTF8_CHAR(), are the most commonly
desired strictures, and use an implementation of a, hopefully, inlined
trie for speed.  This is for generality and the major portion of its
implementation isn't inlined.

4 years agoAdd macro for Unicode Corregindum #9 strict
Karl Williamson [Mon, 12 Sep 2016 22:52:41 +0000 (16:52 -0600)]
Add macro for Unicode Corregindum #9 strict

This macro follows Unicode Corrigendum #9 to allow non-character code
points.  These are still discouraged but not completely forbidden.

It's best for code that isn't intended to operate on arbitrary other
code text to use the original definition, but code that does things,
such as source code control, should change to use this definition if it
wants to be Unicode-strict.

Perl can't adopt C9 wholesale, as it might create security holes in
existing applications that rely on Perl keeping non-chars out.

4 years agoAdd macro for determining if UTF-8 is Unicode-strict
Karl Williamson [Mon, 12 Sep 2016 19:38:22 +0000 (13:38 -0600)]
Add macro for determining if UTF-8 is Unicode-strict

4 years agoperlapi: Clarify isUTF8_CHAR()
Karl Williamson [Mon, 12 Sep 2016 20:30:15 +0000 (14:30 -0600)]
perlapi: Clarify isUTF8_CHAR()

4 years agoinline.h: Add 'const's; avoid hiding outer variable
Karl Williamson [Wed, 14 Sep 2016 23:09:51 +0000 (17:09 -0600)]
inline.h: Add 'const's; avoid hiding outer variable

This changes some formal parameters to be const, and avoids reusing the
same variable name within an inner block, to avoid confusion

4 years agoAdd tests for is_valid_partial_utf8_char_flags()
Karl Williamson [Thu, 8 Sep 2016 17:34:15 +0000 (11:34 -0600)]
Add tests for is_valid_partial_utf8_char_flags()

4 years agoAdd is_utf8_valid_partial_char_flags()
Karl Williamson [Mon, 12 Sep 2016 04:18:57 +0000 (22:18 -0600)]
Add is_utf8_valid_partial_char_flags()

This is a generalization of is_utf8_valid_partial_char to allow the
caller to automatically exclude things such as surrogates.

4 years agoperlapi: Reword description of is_utf8_valid_partial_char
Karl Williamson [Sun, 11 Sep 2016 15:40:37 +0000 (09:40 -0600)]
perlapi: Reword description of is_utf8_valid_partial_char

4 years agoFix off-by-one error in is_utf8_valid_partial_char()
Karl Williamson [Sun, 11 Sep 2016 04:27:37 +0000 (22:27 -0600)]
Fix off-by-one error in is_utf8_valid_partial_char()

4 years agohandy.h: Comment memEQs and memNEs
Karl Williamson [Sun, 11 Sep 2016 04:24:48 +0000 (22:24 -0600)]
handy.h: Comment memEQs and memNEs

4 years agoutf8.c: Add some UNLIKELYs
Karl Williamson [Sun, 11 Sep 2016 04:18:59 +0000 (22:18 -0600)]
utf8.c: Add some UNLIKELYs

4 years agoutf8.h: Add comment, white-space changes
Karl Williamson [Sun, 11 Sep 2016 04:18:16 +0000 (22:18 -0600)]
utf8.h: Add comment, white-space changes

4 years agoEnhance and rename is_utf8_char_slow()
Karl Williamson [Sun, 11 Sep 2016 04:09:44 +0000 (22:09 -0600)]
Enhance and rename is_utf8_char_slow()

This changes the name of this helper function and adds a parameter and
functionality to allow it to exclude problematic classes of code
points, the same ones excludeable by utf8n_to_uvchar(), like surrogates
or non-character code points.

4 years agoAPItest/t/utf8.t: Add tests
Karl Williamson [Thu, 8 Sep 2016 04:22:01 +0000 (22:22 -0600)]
APItest/t/utf8.t: Add tests

These fill in gaps in current testing.  In particular all the overlong
UTF-8 possible edge cases are now tested.

4 years agoAPItest/utf8.t: Some clean up
Karl Williamson [Thu, 8 Sep 2016 04:14:38 +0000 (22:14 -0600)]
APItest/utf8.t: Some clean up

This adds some information to test names, does some white-space
alignments, changes one test to stress things slightly more, and adds a
'use bytes' because in some cases the desired byte-oriented output was
not showing up.

4 years agoTest isUTF8_CHAR()
Karl Williamson [Mon, 5 Sep 2016 03:32:08 +0000 (21:32 -0600)]
Test isUTF8_CHAR()

4 years agolib/warnings/utf8: Reinstate warning test
Karl Williamson [Sun, 11 Sep 2016 04:19:42 +0000 (22:19 -0600)]
lib/warnings/utf8: Reinstate warning test

I removed this in 35f8c9bd0ff4f298f8bc09ae9848a14a9667a95a, thinking the
warning was no longer being raised.  But in fact, it was showing a bug,
now fixed by the previous commit.

4 years agoRevamp overlong handling in is_utf8_char_slow, fixing a bug
Karl Williamson [Sun, 11 Sep 2016 03:15:04 +0000 (21:15 -0600)]
Revamp overlong handling in is_utf8_char_slow, fixing a bug

This combines EBCDIC and ASCII branches as much as possible, and fixes a
bug that showed up only on EBCDIC platforms, and 64-bit ASCII ones for
the highest overlong, where it could erroneously conclude that a
sequence was an overlong.

Tests are coming in a future commit.
.

4 years agoutf8.c: Fix typo in comment, add some comments
Karl Williamson [Sun, 11 Sep 2016 03:06:39 +0000 (21:06 -0600)]
utf8.c: Fix typo in comment, add some comments

4 years agoutf8.c: Extract duplicate code to common fcn
Karl Williamson [Sat, 10 Sep 2016 15:00:03 +0000 (09:00 -0600)]
utf8.c: Extract duplicate code to common fcn

Actually the code isn't quite duplicate, but should be because one
instance is wrong.  This failure would only show up on EBCDIC platforms.
Tests are coming in a future commit.

4 years agohandy.h: Add memLT, memLE, memGT, memGE
Karl Williamson [Sat, 10 Sep 2016 14:54:36 +0000 (08:54 -0600)]
handy.h: Add memLT, memLE, memGT, memGE

These correspond to strLT, etc.  I am deferring documenting them in case
this turns out to be a bad idea for some reason.

4 years agoUnconditionally define memcmp() if not sane
Karl Williamson [Sat, 10 Sep 2016 14:46:18 +0000 (08:46 -0600)]
Unconditionally define memcmp() if not sane

Prior to this commit, if there was a #define for memcmp that invoked a
version that Configure deemed to not be sufficient for normal use, it
was retained, so that perl used the defective version.  This apparently
hasn't been a problem in the field, but I realized the potential issue
doing code reading, and am correcting it.

4 years agoisUTF8_CHAR(): Bring UTF-EBCDIC to parity with ASCII
Karl Williamson [Sat, 3 Sep 2016 20:12:27 +0000 (14:12 -0600)]
isUTF8_CHAR(): Bring UTF-EBCDIC to parity with ASCII

This changes the macro isUTF8_CHAR to have the same number of code
points built-in for EBCDIC as ASCII.  This obsoletes the
IS_UTF8_CHAR_FAST macro, which is removed.

Previously, the code generated by regen/regcharclass.pl for ASCII
platforms was hand copied into utf8.h, and LIKELY's manually added, then
the generating code was commented out.  Now this has been done with
EBCDIC platforms as well.  This makes regenerating regcharclass.h
faster.

The copied macro in utf8.h is moved by this commit to within the main
code section for non-EBCDIC compiles, cutting the number of #ifdef's
down, and the comments about it are changed somewhat.

4 years agoregen/regcharclass.pl: surrogates are code points
Karl Williamson [Sat, 3 Sep 2016 18:15:29 +0000 (12:15 -0600)]
regen/regcharclass.pl: surrogates are code points

They are not "characters"

4 years agoAdd IS_UTF8_INVARIANT and IS_UVCHR_INVARIANT to API
Karl Williamson [Sat, 3 Sep 2016 22:13:15 +0000 (16:13 -0600)]
Add IS_UTF8_INVARIANT and IS_UVCHR_INVARIANT to API

4 years agoutfebcdic.h: Fix typo in comment
Karl Williamson [Thu, 8 Sep 2016 04:03:21 +0000 (22:03 -0600)]
utfebcdic.h: Fix typo in comment

4 years agoAdd #defines for XS code for Unicode Corregindum 9
Karl Williamson [Wed, 14 Sep 2016 22:05:35 +0000 (16:05 -0600)]
Add #defines for XS code for Unicode Corregindum 9

These are convenience macros.

4 years agoperlapi: Clarify utf8n_to_uvchr entry
Karl Williamson [Wed, 14 Sep 2016 22:02:50 +0000 (16:02 -0600)]
perlapi: Clarify utf8n_to_uvchr entry

4 years agoperlunicode: Fix typo
Karl Williamson [Wed, 14 Sep 2016 21:57:34 +0000 (15:57 -0600)]
perlunicode: Fix typo

4 years agoappend_utf8_from_native_byte: Add parens for clarity
Karl Williamson [Tue, 13 Sep 2016 22:40:44 +0000 (16:40 -0600)]
append_utf8_from_native_byte: Add parens for clarity

I can never remember the precedence of dereference and ++.

4 years agoFix English in perlfunc
E. Choroba [Sat, 17 Sep 2016 20:05:15 +0000 (22:05 +0200)]
Fix English in perlfunc

4 years agoAdd regexp_nonull.t
Father Chrysostomos [Sat, 17 Sep 2016 18:06:55 +0000 (11:06 -0700)]
Add regexp_nonull.t

for testing the regular expression engine with strings that
lack a trailing null byte.

4 years agoNested single quotes in documentation example
E. Choroba [Fri, 16 Sep 2016 08:33:53 +0000 (01:33 -0700)]
Nested single quotes in documentation example

Documentation of the Unicode Bug contains an example that nests single
quotes in a shell. Most shells can't do that. Patch attached.

Signed-off-by: Abigail <abigail@abigail.be>
4 years agorestore comment mangled by 27da23d53ccce6
Lukas Mai [Fri, 16 Sep 2016 11:02:16 +0000 (13:02 +0200)]
restore comment mangled by 27da23d53ccce6

4 years agoPaying respect to Jon AVENJ Portnoy
Sawyer X [Wed, 14 Sep 2016 21:29:46 +0000 (23:29 +0200)]
Paying respect to Jon AVENJ Portnoy

4 years agoUpgrade Test::Simple from version 1.302052 to 1.302056
Steve Hay [Wed, 14 Sep 2016 13:08:37 +0000 (14:08 +0100)]
Upgrade Test::Simple from version 1.302052 to 1.302056

4 years agoIncrease $XS::APItest::VERSION to 0.84
Father Chrysostomos [Wed, 14 Sep 2016 06:05:43 +0000 (23:05 -0700)]
Increase $XS::APItest::VERSION to 0.84

4 years agoperldelta for #129164 / 92b69f650
Father Chrysostomos [Wed, 14 Sep 2016 06:01:58 +0000 (23:01 -0700)]
perldelta for #129164 / 92b69f650

4 years agoperldelta for #129090 / 6da13066b6
Father Chrysostomos [Wed, 14 Sep 2016 06:00:56 +0000 (23:00 -0700)]
perldelta for #129090 / 6da13066b6

4 years agoperldelta for #47047 / 1de22db27a
Father Chrysostomos [Wed, 14 Sep 2016 05:59:18 +0000 (22:59 -0700)]
perldelta for #47047 / 1de22db27a

4 years agoperldelta for #129196 / 9bde56224
Father Chrysostomos [Wed, 14 Sep 2016 05:57:22 +0000 (22:57 -0700)]
perldelta for #129196 / 9bde56224

4 years agoperldelta for ba0a4150f
Father Chrysostomos [Wed, 14 Sep 2016 05:54:49 +0000 (22:54 -0700)]
perldelta for ba0a4150f

4 years agoperldelta for #125679 / 2b6a5bfb1
Father Chrysostomos [Wed, 14 Sep 2016 05:50:30 +0000 (22:50 -0700)]
perldelta for #125679 / 2b6a5bfb1

4 years agoperldelta for #107726 / 8bc40f3a4e
Father Chrysostomos [Wed, 14 Sep 2016 05:48:29 +0000 (22:48 -0700)]
perldelta for #107726 / 8bc40f3a4e

4 years agoperldelta for 65169990
Father Chrysostomos [Wed, 14 Sep 2016 05:46:43 +0000 (22:46 -0700)]
perldelta for 65169990

4 years ago[perl #129267] Test for gv_fetchmethod buffer overrun
Father Chrysostomos [Wed, 14 Sep 2016 05:38:59 +0000 (22:38 -0700)]
[perl #129267] Test for gv_fetchmethod buffer overrun

4 years agofix #129267: rework gv_fetchmethod_pvn_flags separator parsing
Yves Orton [Tue, 13 Sep 2016 21:14:49 +0000 (23:14 +0200)]
fix #129267: rework gv_fetchmethod_pvn_flags separator parsing

With previous code we could overrun the end of the name when
the last char in the string was a colon. This reworks the code
so it is more clear what is going on, and so it more similar
to other code that also parses out package separaters in gv.c.

This is a rework of the reverted patches:
243ca72 rename "nend" name_cursor in Perl_gv_fetchmethod_pvn_flags
b053c93 fix: [perl #129267] Possible string overrun with invalid len in gv.c

4 years agoclean up gv_fetchmethod_pvn_flags: rename nsplit to last_separator
Yves Orton [Tue, 13 Sep 2016 21:10:48 +0000 (23:10 +0200)]
clean up gv_fetchmethod_pvn_flags: rename nsplit to last_separator

nsplit if set points at the first char of the last separator
in name, so rename it so it is more comprehensible what it means.

4 years agoclean up gv_fetchmethod_pvn_flags: move origname init to function start
Yves Orton [Tue, 13 Sep 2016 21:06:58 +0000 (23:06 +0200)]
clean up gv_fetchmethod_pvn_flags: move origname init to function start

so it is more obvious that it is a constant copy of the
original name.