develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #72766] pos() uses sv_pos_b2u/sv_pos_u2b

From:
Father Chrysostomos via RT
Date:
July 24, 2013 01:07
Subject:
[perl #72766] pos() uses sv_pos_b2u/sv_pos_u2b
Message ID:
rt-3.6.HEAD-2552-1374628039-246.72766-15-0@perl.org
On Sat Feb 13 07:43:11 2010, nicholas wrote:
> mg.c
> 1935:           sv_pos_b2u(lsv, &i);
> 1995:   sv_pos_u2b(lsv, &p, 0);
> 
> pp.c
> 369:                sv_pos_b2u(sv, &i);
> 
> Perl_magic_getpos(), Perl_magic_setpos() and pp_pos respectively. This
means
> that reading and writing pos() will fail on UTF-8 strings over 2GB.

I fixed this in commit 6174b39a, but it is only part of the larger
puzzle, represented by #116907 and others.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=72766



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About