OpenSolaris

Printable Version Enter a New Search
Bug ID 6788789
Synopsis adt_token.c:adt_to_text:ADT_MSG uses the wrong enum cast for getting the message list.
State 10-Fix Delivered (Fix available in build)
Category:Subcategory audit:library
Keywords
Responsible Engineer Gary Winiger
Reported Against
Duplicate Of
Introduced In solaris_10
Commit to Fix snv_107
Fixed In snv_107
Release Fixed solaris_nevada(snv_107)
Related Bugs 4887076
Submit Date 24-December-2008
Last Update Date 13-May-2009
Description
## 08/12/23 gww ##
        case ADT_MSG:
                list = &adt_msg_text[(enum adt_login_text)def->dd_input_size];
                list_index = ((union convert *)p_data)->msg_selector;

The enum should be adt_msg_list.  Indeed adt_login_text is an enum, but
it is not the enum for the set of message lists, it is the enum for the
obsolete login_text message list.  This is confusing for anyone maintaining
this code.

Gary..
Work Around
N/A
Comments
N/A