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';