Skip Menu |

This queue is for tickets about the Time-Format_XS CPAN distribution.

Report information
The Basics
Id: 17882
Status: resolved
Priority: 0/
Queue: Time-Format_XS

People
Owner: Nobody in particular
Requestors: jcallaha [...] willamette.edu
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.02
Fixed in: (no value)



Subject: perl module Time::Format::XS bug in format.c, line 120
format.c, line 120 causes a segfault, at least in my configuration on Solaris 9. The line currently reads: 118 /* Locale either was never set, or has just changed. Store it. */ 119 strncpy(prev_locale, cur_locale, 39); 120 cur_locale[39] = '\0'; Since memory for cur_locale is allocated by the setlocale() function, there is no guarantee that it is 40 bytes long. I think what you meant to do was this: 120 prev_local[39] = '\0';
Thanks, good catch. This will be fixed in v1.03, which should be out in the next week or two. -- Eric
On Mon Dec 04 16:20:32 2006, ROODE wrote: Show quoted text
> Thanks, good catch. This will be fixed in v1.03, which should be out in > the next week or two. >
I am currently hunting for bugs in perl-5.8.9-tobe and see some test failures in your module with perl@34467, but not with 5.8.8. Maybe these test failures are related to this reported bug, but maybe it's also some change in perl. So it would be good to have Time::Format_XS 1.03 out to check this out. Regards, Slaven
Fixed in v1.03