develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #126991] integer overflow in line number tracking reported bycaller()

Thread Next
From:
Hugo van der Sanden via RT
Date:
June 12, 2019 08:41
Subject:
[perl #126991] integer overflow in line number tracking reported bycaller()
Message ID:
rt-4.0.24-5191-1560328874-1972.126991-15-0@perl.org
On Tue, 11 Jun 2019 22:45:41 -0700, tonyc wrote: 
> Do we want to do anything else for this ticket?
> 
> I can see three options:
> 
> a) reject the remaining issues (line numbers >=2**31 not preserved in
> GVs, >2**32 not preserved at all) and close the ticket
> 
> b) mitigate it somehow, eg. warn or croak on line numbers >=2**31.
> 
> c) leave the ticket open, even if we don't plan to do anything

My inclination is for (b) over (a); however I don't think it's hugely urgent, so in practice that might look more like (c).

I've constructed file/line info not relating to a real line in a real file a few times in the past, eg to get useful nytprof results for a Moo application. I think there are legitimate use cases here, and we should be letting the user know if they go beyond what we can support.

I think a warning is probably enough though.

Hugo

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126991

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