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 libc/19668] Missing Sanity Check for malloc() in file 'tst-setcontext-fpscr.c'


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

--- 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, master has been updated
       via  02325d6c3a3eb415556782a7d2cfff589d29493d (commit)
      from  663e7d784977f6b15c0cab73f754f9f39c9c0c2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit 02325d6c3a3eb415556782a7d2cfff589d29493d
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Feb 6 21:32:53 2018 +0000

    Use xmalloc in tst-setcontext-fpscr.c (bug 19668).

    Bug 19668 reports an unchecked malloc call in the test
    sysdeps/powerpc/fpu/tst-setcontext-fpscr.c.  This patch makes that
    test use xmalloc.  It does not otherwise move this test to the
    support/ infrastructure or support/test-driver.c; the test has various
    uses of exit and _exit on error cases, and uses atexit, and while I
    think those things would all still work in the context of
    test-driver.c, it's not an immediately obvious conversion the way it
    would be for many tests that don't use test-driver.c.

    Tested for powerpc.

        [BZ #19668]
        * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
        <support/support.h>.  Do not include <malloc.h>.
        (query_auxv): Use xmalloc instead of malloc.

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

Summary of changes:
 ChangeLog                                  |    5 +++++
 sysdeps/powerpc/fpu/tst-setcontext-fpscr.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
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]