This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug time/23789] mktime does not set errno on failure


https://sourceware.org/bugzilla/show_bug.cgi?id=23789

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, aaribaud/bugzilla/23789/v2 has been created
        at  821e26d45f35922dd00e8fc604ef3fe9f3a654ab (commit)

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=821e26d45f35922dd00e8fc604ef3fe9f3a654ab

commit 821e26d45f35922dd00e8fc604ef3fe9f3a654ab
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Wed Oct 24 14:43:06 2018 +0200

    Ensure mktime sets errno on error (bug 23789)

    Posix mandates that mktime set errno to EOVERFLOW
    on error, that it, upon retuning -1, but the glibc
    mktime does not so far on 32-bit architectures.

    Fix this and add a test to prevent regressions.

    The test was run through 'make check' on i686-linux-gnu,
    then the fix was added and 'make check' run again.

        * time/mktime.c
        (mktime): Set errno to EOVERFLOW on error.
        * time/bug-mktime4.c: New file.
            * time/Makefile: Add bug-mktime4.

-----------------------------------------------------------------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]