This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

libstdc++/4542: _M_construct_name in locale_facets.tcc uses variable array size



>Number:         4542
>Category:       libstdc++
>Synopsis:       _M_construct_name in locale_facets.tcc uses variable array size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 11 08:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brendan Kehoe
>Release:        CVS tree
>Organization:
>Environment:

>Description:
In bits/locale_facets.tcc, the method time_get<>::_M_extract_name has a definition of the array `__matches' using variable array size based on the method's __indexlen parameter.
>How-To-Repeat:

>Fix:
Change __matches to be vector<int>, for instance.

>Release-Note:
>Audit-Trail:
>Unformatted:


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