Skip to content
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

sv_gets uses sv_pos_b2u/sv_pos_u2b #10167

Open
p5pRT opened this issue Feb 13, 2010 · 3 comments
Open

sv_gets uses sv_pos_b2u/sv_pos_u2b #10167

p5pRT opened this issue Feb 13, 2010 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Feb 13, 2010

Migrated from rt.perl.org#72774 (status was 'new')

Searchable as RT72774$

@p5pRT
Copy link
Author

p5pRT commented Feb 13, 2010

From @nwc10

sv.c
6986​: sv_pos_u2b(sv,&append,0);

This means that calls to sv_gets() will fail for UTF-8 strings over 2GB, *if*
called in append mode, *and* the string wasn't UTF-8 encoded, *and* the file
handle is marked as UTF-8.

Append mode is only used in the core by the tokeniser, and for constructions
such as

  $a .= <FH>

Nicholas Clark

@p5pRT
Copy link
Author

p5pRT commented Sep 16, 2010

From @cpansprout

Exact copy of 72774.

@p5pRT
Copy link
Author

p5pRT commented Sep 16, 2010

@cpansprout - Status changed from 'new' to 'resolved'

@Perl Perl deleted a comment from p5pRT Feb 4, 2020
@xenu xenu removed the Severity Low label Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants