This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 python/17284] template_argument doesn't check for negative argno


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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fd3ba736db19d4c7cd928f3735329339a8c8ef47

commit fd3ba736db19d4c7cd928f3735329339a8c8ef47
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 15 00:29:20 2018 -0600

    Check for negative argument in Type.template_argument

    typy_template_argument did not check if the template argument was
    non-negative.  A negative value could cause a gdb crash.

    2018-09-23  Tom Tromey  <tom@tromey.com>

        PR python/17284:
        * python/py-type.c (typy_template_argument): Check for negative
        argument number.

    gdb/testsuite/ChangeLog
    2018-09-23  Tom Tromey  <tom@tromey.com>

        PR python/17284:
        * gdb.python/py-template.exp (test_template_arg): Add test for
        negative template argument number.

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