[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#162917: libc6: strftime crashes with invalid input

On Mon, Sep 30, 2002 at 07:45:52PM -0400, Ben Collins wrote:
> Anything else is obviously undefined. Since SUSv2 defines the range on
> the input parameters, it should not be expected that that all functions
> using struct tm should have to verify all members of struct tm fit into
> the range. That is the job of the caller.
> Unless you can provide statements to the contrary, I'll close this bug.

Can't you do something better than crash? Admittedly, strftime(3)
indicates that it doesn't have a way to definitively indicate that an
error occured, which is IMHO poor design.

You can mark it wontfix but I still think it's a bug. We found this bug
through the Xpdf package, so I've invited the Xpdf author to add his

Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

Reply to: