-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bleadperl v5.25.0-40-ga52f2cc breaks GAAS/perl-lisp-0.06.tar.gz #15380
Comments
From @andkbisect commit a52f2cc Validate the 'require Bare::Word' pathname. rt.cpan https://rt.cpan.org/Ticket/Display.html?id=114635 perl -V Summary of my perl5 (revision 5 version 25 subversion 1) configuration: Characteristics of this binary (from libperl): -- |
From @iabynOn Wed, Jun 01, 2016 at 06:47:48PM -0700, Andreas J. Koenig via RT wrote:
This is because of poor toking of the require keyword in toke.c. require; as require $_; while perl (even prior to the bisect) incorrectly parses the first require $_[0] ? require : require $_[0] as require ''; (where the const is actually a zero-length bareword) due to getting The bisected commit merely turned such a name into a compile-time error: Bareword in require maps to empty filename I'm not sure how to fix this. It seems to be an intersection of: * default args I suspect something needs fixing in S_force_word. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Thu Jun 02 14:52:34 2016, davem wrote:
The attached seems to do it. -- Father Chrysostomos |
From @cpansproutInline Patchdiff --git a/toke.c b/toke.c
index 2c6cd85..02c1325 100644
--- a/toke.c
+++ b/toke.c
@@ -2012,7 +2012,7 @@ S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack)
start = skipspace(start);
s = start;
if (isIDFIRST_lazy_if(s,UTF)
- || (allow_pack && *s == ':') )
+ || (allow_pack && *s == ':' && s[1] == ':') )
{
s = scan_word(s, PL_tokenbuf, sizeof PL_tokenbuf, allow_pack, &len);
if (check_keyword) { |
From @cpansproutOn Thu Jun 02 18:04:25 2016, sprout wrote:
I’ve applied it, with tests, as e7127e2. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#128307 (status was 'resolved')
Searchable as RT128307$
The text was updated successfully, but these errors were encountered: