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
SvPVX not fully duplicated #13718
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgrvpv_dup() in sv.c, which duplicates the PV part of a scalar for the /* Normal PV - clone whole allocated space */ The code and comment do not match. Although the comment claims to clone If SvPOK is off, the buffer is just an allocated memory region owned by If the objective of this part of rvpv_dup() were only to accommodate Perl Info
|
From @rurbanOn Tue, Apr 8, 2014 at 7:19 AM, Zefram <perlbug-followup@perl.org> wrote:
SAVEPVN and SVPVX guarantee a trailing \0, but good catch. (see util.c
We guarentee that, even for foreign buffers.
Just change it to SvCUR. |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#121599 (status was 'open')
Searchable as RT121599$
The text was updated successfully, but these errors were encountered: