develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #98480] Incorrect math when reading a padded number from shared memory

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
September 14, 2011 09:56
Subject:
[perl #98480] Incorrect math when reading a padded number from shared memory
Message ID:
rt-3.6.HEAD-31297-1316019380-1904.98480-15-0@perl.org
On Wed Sep 14 08:11:13 2011, LeonT wrote:
> On Tue, Sep 6, 2011 at 5:31 PM, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
> > On Tue Sep 06 04:44:45 2011, LeonT wrote:
> >> On Mon, Sep 5, 2011 at 10:32 PM, Mark Grant <perlbug-
> >> followup@perl.org> wrote:
> >> > # New Ticket Created by �Mark Grant
> >> > # Please include the string: �[perl #98480]
> >> > # in the subject line of all future correspondence about this issue.
> >> > # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=98480 >
> >>
> >> It seems shmread doesn't turn off SvIOK on the variable when writing
> >> to it, even though it should.
> >>
> >> The patch attached is a quick fix, but I'm wondering if there aren't
> >> more corner cases in this code. It looks terribly fragile to me.
> >>
> >> Leon
> >
> > Is it possible to write tests for this sort of thing?
> 
> Fix with tests attached
> 
> Leon

*That’s* odd! Your message showed up twice in RT, once without the
patches (hence my comment about stealth patches).


Thread Previous | Thread Next


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