develooper Front page | perl.perl5.porters | Postings from November 2016

Re: [perl #130133] [PATCH] Configure leaves garbage in$Config{longdblinfbytes}

Thread Previous | Thread Next
From:
Pip Cet
Date:
November 18, 2016 22:24
Subject:
Re: [perl #130133] [PATCH] Configure leaves garbage in$Config{longdblinfbytes}
Message ID:
CAOqdjBcF=A5CtRJjJDgrX5T72rhz4BPcq1mx5-uQTR+=xh=sEA@mail.gmail.com
That patch fixes things for ldinf, but doesn't appear to do anything for ldnan.

Instead of memsetting after the fact, we could clear an area of memory
before storing the (long) doubles there, that would catch any future
formats with undefined bytes, too.

And maybe Configure C programs should be compiled with warnings
enabled to catch other bugs like this (if I'm looking at the code
right, it's unreachable code in a switch statement, which I think gcc
warns about.)

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