(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c) |
| |
| 801 | | | YY_DECL |
| 802 | | | { |
| 803 | | | register yy_state_type yy_current_state; |
| 804 | | | register char *yy_cp, *yy_bp; |
| 805 | | | register int yy_act; |
| 806 | | | |
| 807 | | | #line 149 "uat_load.l" |
| 808 | | | |
| 809 | | | #line 810 "uat_load.c" |
| 810 | | | |
| 811 | | | if ( !(yy_init) ) |
| 812 | | | { |
| 813 | | | (yy_init) = 1; |
| 814 | | | |
| 815 | | | #ifdef YY_USER_INIT |
| 816 | | | YY_USER_INIT; |
| 817 | | | #endif |
| 818 | | | |
| 819 | | | if ( ! (yy_start) ) |
| 820 | | | (yy_start) = 1; |
| 821 | | | |
| 822 | | | if ( ! uat_load_in ) |
| 823 | | | uat_load_in = stdin; |
| 824 | | | |
| 825 | | | if ( ! uat_load_out ) |
| 826 | | | uat_load_out = stdout; |
| 827 | | | |
| 828 | | | if ( ! YY_CURRENT_BUFFER ) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
289 | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
290 | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
291 | : NULL) |
| |
|
| 829 | | | uat_load_ensure_buffer_stack (); |
| 830 | | | YY_CURRENT_BUFFER_LVALUE =
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 831 | | | uat_load__create_buffer(uat_load_in,YY_BUF_SIZE ); |
| 832 | | | } |
| 833 | | | |
| 834 | | | uat_load__load_buffer_state( ); |
| 835 | | | } |
| 836 | | | |
| 837 | | | while ( 1 ) |
| 838 | | | { |
| 839 | | | yy_cp = (yy_c_buf_p); |
| 840 | | | |
| 841 | | | |
| 842 | | | *yy_cp = (yy_hold_char); |
| 843 | | | |
| 844 | | | |
| 845 | | | |
| 846 | | | |
| 847 | | | yy_bp = yy_cp; |
| 848 | | | |
| 849 | | | yy_current_state = (yy_start); |
| 850 | | | yy_match: |
| 851 | | | do |
| 852 | | | { |
| 853 | | | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
| 854 | | | if ( yy_accept[yy_current_state] ) |
| 855 | | | { |
| 856 | | | (yy_last_accepting_state) = yy_current_state; |
| 857 | | | (yy_last_accepting_cpos) = yy_cp; |
| 858 | | | } |
| 859 | | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 860 | | | { |
| 861 | | | yy_current_state = (int) yy_def[yy_current_state]; |
| 862 | | | if ( yy_current_state >= 73 ) |
| 863 | | | yy_c = yy_meta[(unsigned int) yy_c]; |
| 864 | | | } |
| 865 | | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| 866 | | | ++yy_cp; |
| 867 | | | } |
| 868 | | | while ( yy_current_state != 72 ); |
| 869 | | | yy_cp = (yy_last_accepting_cpos); |
| 870 | | | yy_current_state = (yy_last_accepting_state); |
| 871 | | | |
| 872 | | | yy_find_action: |
| 873 | | | yy_act = yy_accept[yy_current_state]; |
| 874 | | | |
| 875 | | | YY_DO_BEFORE_ACTION;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
382 | #define YY_DO_BEFORE_ACTION \ |
383 | (yytext_ptr) = yy_bp; \ |
384 | uat_load_leng = (size_t) (yy_cp - yy_bp); \ |
385 | (yy_hold_char) = *yy_cp; \ |
386 | *yy_cp = '\0'; \ |
387 | (yy_c_buf_p) = yy_cp; |
| |
|
| 876 | | | |
| 877 | | | do_action: |
| 878 | | | |
| 879 | | | switch ( yy_act ) |
| 880 | | | { |
| 881 | | | case 0: |
| 882 | | | |
| 883 | | | *yy_cp = (yy_hold_char); |
| 884 | | | yy_cp = (yy_last_accepting_cpos); |
| 885 | | | yy_current_state = (yy_last_accepting_state); |
| 886 | | | goto yy_find_action; |
| 887 | | | |
| 888 | | | case 1: |
| 889 | | | YY_RULE_SETUP |
| 890 | | | #line 150 "uat_load.l" |
| 891 | | | ; |
| 892 | | | YY_BREAK |
| 893 | | | case 2: |
| 894 | | | |
| 895 | | | YY_RULE_SETUP |
| 896 | | | #line 151 "uat_load.l" |
| 897 | | | linenum++; |
| 898 | | | YY_BREAK |
| 899 | | | case 3: |
| 900 | | | |
| 901 | | | YY_RULE_SETUP |
| 902 | | | #line 152 "uat_load.l" |
| 903 | | | linenum++; |
| 904 | | | YY_BREAK |
| 905 | | | case 4: |
| 906 | | | YY_RULE_SETUP |
| 907 | | | #line 154 "uat_load.l" |
| 908 | | | { |
| 909 | | | ptr = g_strdup(""); |
| 910 | | | len = 0; |
| 911 | | | |
| 912 | | | DUMP_FIELD("empty->next"); |
| 913 | | | |
| 914 | | | SET_FIELD();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
593 | #define SET_FIELD() \ |
594 | { const gchar* err; \ |
595 | if (uat->fields[colnum].cb.chk) { \ |
596 | if ( ! uat->fields[colnum].cb.chk(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data, &err) ) { \ |
597 | ERROR(("%s",err)); \ |
598 | }\ |
599 | }\ |
600 | uat->fields[colnum].cb.set(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data);\ |
601 | g_free(ptr);\ |
602 | colnum++; \ |
603 | } while(0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 915 | | | |
| 916 | | | if ( colnum >= uat->ncols ) { |
| 917 | | | ERROR(("more fields than required"));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 918 | | | } |
| 919 | | | |
| 920 | | | BEGIN NEXT_FIELD; |
| 921 | | | } |
| 922 | | | YY_BREAK |
| 923 | | | case 5: |
| 924 | | | |
| 925 | | | YY_RULE_SETUP |
| 926 | | | #line 169 "uat_load.l" |
| 927 | | | { |
| 928 | | | ptr = ""; |
| 929 | | | len = 0; |
| 930 | | | |
| 931 | | | BEGIN END_OF_RECORD; |
| 932 | | | |
| 933 | | | yyless(uat_load_leng);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
186 | #define yyless(n) \ |
187 | do \ |
188 | { \ |
189 | /* Undo effects of setting up uat_load_text. */ \ |
190 | int yyless_macro_arg = (n); \ |
191 | YY_LESS_LINENO(yyless_macro_arg);\ |
192 | *yy_cp = (yy_hold_char); \ |
193 | YY_RESTORE_YY_MORE_OFFSET \ |
194 | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
195 | YY_DO_BEFORE_ACTION; /* set up uat_load_text again */ \ |
196 | } \ |
197 | while ( 0 ) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
382 | #define YY_DO_BEFORE_ACTION \ |
383 | (yytext_ptr) = yy_bp; \ |
384 | uat_load_leng = (size_t) (yy_cp - yy_bp); \ |
385 | (yy_hold_char) = *yy_cp; \ |
386 | *yy_cp = '\0'; \ |
387 | (yy_c_buf_p) = yy_cp; |
| |
|
| 934 | | | } |
| 935 | | | YY_BREAK |
| 936 | | | case 6: |
| 937 | | | |
| 938 | | | YY_RULE_SETUP |
| 939 | | | #line 178 "uat_load.l" |
| 940 | | | { |
| 941 | | | ptr = uat_undquote(uat_load_text,uat_load_leng,&len); |
| 942 | | | |
| 943 | | | |
| 944 | | | if (colnum < uat->ncols - 1) { |
| 945 | | | DUMP("quoted_str->s"); |
| 946 | | | BEGIN SEPARATOR; |
| 947 | | | } else { |
| 948 | | | DUMP("quoted_str->eor"); |
| 949 | | | BEGIN END_OF_RECORD; |
| 950 | | | } |
| 951 | | | } |
| 952 | | | YY_BREAK |
| 953 | | | case 7: |
| 954 | | | YY_RULE_SETUP |
| 955 | | | #line 191 "uat_load.l" |
| 956 | | | { |
| 957 | | | ptr = uat_unbinstring(uat_load_text,uat_load_leng,&len); |
| 958 | | | |
| 959 | | | if (!ptr) { |
| 960 | | | ERROR(("uneven hexstring for field %s",uat->fields[colnum].name));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 961 | | | } |
| 962 | | | |
| 963 | | | if ( colnum < uat->ncols - 1 ) { |
| 964 | | | DUMP("binstring->s"); |
| 965 | | | BEGIN SEPARATOR; |
| 966 | | | } else { |
| 967 | | | DUMP("binstring->eor"); |
| 968 | | | BEGIN END_OF_RECORD; |
| 969 | | | } |
| 970 | | | } |
| 971 | | | YY_BREAK |
| 972 | | | case 8: |
| 973 | | | YY_RULE_SETUP |
| 974 | | | #line 207 "uat_load.l" |
| 975 | | | { |
| 976 | | | |
| 977 | | | DUMP_FIELD("separator->next"); |
| 978 | | | |
| 979 | | | SET_FIELD();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
593 | #define SET_FIELD() \ |
594 | { const gchar* err; \ |
595 | if (uat->fields[colnum].cb.chk) { \ |
596 | if ( ! uat->fields[colnum].cb.chk(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data, &err) ) { \ |
597 | ERROR(("%s",err)); \ |
598 | }\ |
599 | }\ |
600 | uat->fields[colnum].cb.set(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data);\ |
601 | g_free(ptr);\ |
602 | colnum++; \ |
603 | } while(0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 980 | | | |
| 981 | | | if ( colnum >= uat->ncols ) { |
| 982 | | | ERROR(("more fields than required"));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 983 | | | } |
| 984 | | | |
| 985 | | | BEGIN NEXT_FIELD; |
| 986 | | | } |
| 987 | | | YY_BREAK |
| 988 | | | case 9: |
| 989 | | | |
| 990 | | | YY_RULE_SETUP |
| 991 | | | #line 220 "uat_load.l" |
| 992 | | | { |
| 993 | | | linenum++; |
| 994 | | | ERROR(("expecting field %s in previous line",uat->fields[colnum].name));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 995 | | | BEGIN START_OF_LINE; |
| 996 | | | } |
| 997 | | | YY_BREAK |
| 998 | | | case 10: |
| 999 | | | YY_RULE_SETUP |
| 1000 | | | #line 226 "uat_load.l" |
| 1001 | | | { |
| 1002 | | | ERROR(("unexpected char '%s' while looking for field %s",uat_load_text,uat->fields[colnum].name));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1003 | | | BEGIN ERRORED; |
| 1004 | | | } |
| 1005 | | | YY_BREAK |
| 1006 | | | case 11: |
| 1007 | | | YY_RULE_SETUP |
| 1008 | | | #line 231 "uat_load.l" |
| 1009 | | | { |
| 1010 | | | ERROR(("more fields than required"));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1011 | | | BEGIN ERRORED; |
| 1012 | | | } |
| 1013 | | | YY_BREAK |
| 1014 | | | case 12: |
| 1015 | | | |
| 1016 | | | YY_RULE_SETUP |
| 1017 | | | #line 236 "uat_load.l" |
| 1018 | | | { |
| 1019 | | | void* rec; |
| 1020 | | | const gchar* err = NULL; |
| 1021 | | | |
| 1022 | | | linenum++; |
| 1023 | | | |
| 1024 | | | DUMP_FIELD("newline->start"); |
| 1025 | | | |
| 1026 | | | SET_FIELD();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
593 | #define SET_FIELD() \ |
594 | { const gchar* err; \ |
595 | if (uat->fields[colnum].cb.chk) { \ |
596 | if ( ! uat->fields[colnum].cb.chk(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data, &err) ) { \ |
597 | ERROR(("%s",err)); \ |
598 | }\ |
599 | }\ |
600 | uat->fields[colnum].cb.set(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data);\ |
601 | g_free(ptr);\ |
602 | colnum++; \ |
603 | } while(0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1027 | | | |
| 1028 | | | rec = uat_add_record(uat, record); |
| 1029 | | | |
| 1030 | | | if (uat->update_cb) |
| 1031 | | | uat->update_cb(rec,&err); |
| 1032 | | | |
| 1033 | | | if (err) { |
| 1034 | | | ERROR(("%s",err));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1035 | | | } |
| 1036 | | | |
| 1037 | | | colnum = 0;; |
| 1038 | | | ptr = NULL; |
| 1039 | | | len = 0; |
| 1040 | | | memset(record,0,uat->record_size); |
| 1041 | | | |
| 1042 | | | BEGIN START_OF_LINE; |
| 1043 | | | } |
| 1044 | | | YY_BREAK |
| 1045 | | | case 13: |
| 1046 | | | YY_RULE_SETUP |
| 1047 | | | #line 263 "uat_load.l" |
| 1048 | | | { |
| 1049 | | | ERROR(("unexpected char while looking for end of line"));
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1050 | | | BEGIN ERRORED; |
| 1051 | | | } |
| 1052 | | | YY_BREAK |
| 1053 | | | case 14: |
| 1054 | | | |
| 1055 | | | YY_RULE_SETUP |
| 1056 | | | #line 268 "uat_load.l" |
| 1057 | | | { linenum++; BEGIN START_OF_LINE; } |
| 1058 | | | YY_BREAK |
| 1059 | | | case 15: |
| 1060 | | | YY_RULE_SETUP |
| 1061 | | | #line 269 "uat_load.l" |
| 1062 | | | ; |
| 1063 | | | YY_BREAK |
| 1064 | | | case 16: |
| 1065 | | | |
| 1066 | | | YY_RULE_SETUP |
| 1067 | | | #line 271 "uat_load.l" |
| 1068 | | | { linenum++; ERROR(("incomplete record")); BEGIN START_OF_LINE; }
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1069 | | | YY_BREAK |
| 1070 | | | case 17: |
| 1071 | | | YY_RULE_SETUP |
| 1072 | | | #line 272 "uat_load.l" |
| 1073 | | | { ERROR(("unexpected input")); }
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
591 | #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) |
| |
|
| 1074 | | | YY_BREAK |
Unreachable Control Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 1075 | | | case 18: |
| 1076 | | | YY_RULE_SETUP |
| 1077 | | | #line 274 "uat_load.l" |
| 1078 | | | ECHO;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
714 | #define ECHO fwrite( uat_load_text, uat_load_leng, 1, uat_load_out ) |
| |
|
| 1079 | | | YY_BREAK |
| 1080 | | | #line 1081 "uat_load.c" |
| 1081 | | | case YY_STATE_EOF(INITIAL):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1082 | | | case YY_STATE_EOF(START_OF_LINE):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1083 | | | case YY_STATE_EOF(NEXT_FIELD):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1084 | | | case YY_STATE_EOF(SEPARATOR):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1085 | | | case YY_STATE_EOF(END_OF_RECORD):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1086 | | | case YY_STATE_EOF(ERRORED):
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1087 | | | yyterminate(); |
| 1088 | | | |
| 1089 | | | case YY_END_OF_BUFFER: |
| 1090 | | | { |
| 1091 | | | |
| 1092 | | | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
| 1093 | | | |
| 1094 | | | |
| 1095 | | | *yy_cp = (yy_hold_char); |
| 1096 | | | YY_RESTORE_YY_MORE_OFFSET |
| 1097 | | | |
| 1098 | | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1099 | | | { |
| 1100 | | | |
| 1101 | | | |
| 1102 | | | |
| 1103 | | | |
| 1104 | | | |
| 1105 | | | |
| 1106 | | | |
| 1107 | | | |
| 1108 | | | |
| 1109 | | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1110 | | | YY_CURRENT_BUFFER_LVALUE->yy_input_file = uat_load_in;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1111 | | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1112 | | | } |
| 1113 | | | |
| 1114 | | | |
| 1115 | | | |
| 1116 | | | |
| 1117 | | | |
| 1118 | | | |
| 1119 | | | |
| 1120 | | | |
| 1121 | | | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1122 | | | { |
| 1123 | | | yy_state_type yy_next_state; |
| 1124 | | | |
| 1125 | | | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
| 1126 | | | |
| 1127 | | | yy_current_state = yy_get_previous_state( ); |
| 1128 | | | |
| 1129 | | | |
| 1130 | | | |
| 1131 | | | |
| 1132 | | | |
| 1133 | | | |
| 1134 | | | |
| 1135 | | | |
| 1136 | | | |
| 1137 | | | |
| 1138 | | | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
| 1139 | | | |
| 1140 | | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
| 1141 | | | |
| 1142 | | | if ( yy_next_state ) |
| 1143 | | | { |
| 1144 | | | |
| 1145 | | | yy_cp = ++(yy_c_buf_p); |
| 1146 | | | yy_current_state = yy_next_state; |
| 1147 | | | goto yy_match; |
| 1148 | | | } |
| 1149 | | | |
| 1150 | | | else |
| 1151 | | | { |
| 1152 | | | yy_cp = (yy_last_accepting_cpos); |
| 1153 | | | yy_current_state = (yy_last_accepting_state); |
| 1154 | | | goto yy_find_action; |
| 1155 | | | } |
| 1156 | | | } |
| 1157 | | | |
| 1158 | | | else switch ( yy_get_next_buffer( ) ) |
| 1159 | | | { |
| 1160 | | | case EOB_ACT_END_OF_FILE: |
| 1161 | | | { |
| 1162 | | | (yy_did_buffer_switch_on_eof) = 0; |
| 1163 | | | |
| 1164 | | | if ( uat_load_wrap( ) ) |
| 1165 | | | { |
| 1166 | | | |
| 1167 | | | |
| 1168 | | | |
| 1169 | | | |
| 1170 | | | |
| 1171 | | | |
| 1172 | | | |
| 1173 | | | |
| 1174 | | | |
| 1175 | | | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
| 1176 | | | |
| 1177 | | | yy_act = YY_STATE_EOF(YY_START);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
154 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
|
| 1178 | | | goto do_action; |
| 1179 | | | } |
| 1180 | | | |
| 1181 | | | else |
| 1182 | | | { |
| 1183 | | | if ( ! (yy_did_buffer_switch_on_eof) ) |
| 1184 | | | YY_NEW_FILE; |
| 1185 | | | } |
| 1186 | | | break; |
| 1187 | | | } |
| 1188 | | | |
| 1189 | | | case EOB_ACT_CONTINUE_SCAN: |
| 1190 | | | (yy_c_buf_p) = |
| 1191 | | | (yytext_ptr) + yy_amount_of_matched_text; |
| 1192 | | | |
| 1193 | | | yy_current_state = yy_get_previous_state( ); |
| 1194 | | | |
| 1195 | | | yy_cp = (yy_c_buf_p); |
| 1196 | | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
| 1197 | | | goto yy_match; |
| 1198 | | | |
| 1199 | | | case EOB_ACT_LAST_MATCH: |
| 1200 | | | (yy_c_buf_p) = |
| 1201 | | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c |
| |
296 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| |
|
| 1202 | | | |
| 1203 | | | yy_current_state = yy_get_previous_state( ); |
| 1204 | | | |
| 1205 | | | yy_cp = (yy_c_buf_p); |
| 1206 | | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
| 1207 | | | goto yy_find_action; |
| 1208 | | | } |
| 1209 | | | break; |
| 1210 | | | } |
| 1211 | | | |
| 1212 | | | default: |
| 1213 | | | YY_FATAL_ERROR( |
| 1214 | | | "fatal flex scanner internal error--no action found" ); |
| 1215 | | | } |
| 1216 | | | } |
| 1217 | | | } |
| |