Changeset 61721 in vbox for trunk/src/VBox/Runtime/common/misc/json.cpp
- Timestamp:
- Jun 15, 2016 2:26:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/json.cpp
r61716 r61721 877 877 878 878 /* Skip value separator and continue with next token. */ 879 if (rtJsonTokenizerConsumeIfMatched(pTokenizer, RTJSONTOKENCLASS_VALUE_SEPARATOR)) 880 rc = rtJsonTokenizerGetToken(pTokenizer, &pToken); 881 else 879 bool fSkippedSep = rtJsonTokenizerConsumeIfMatched(pTokenizer, RTJSONTOKENCLASS_VALUE_SEPARATOR); 880 rc = rtJsonTokenizerGetToken(pTokenizer, &pToken); 881 882 if ( RT_SUCCESS(rc) 883 && !fSkippedSep 884 && pToken->enmClass != RTJSONTOKENCLASS_END_ARRAY) 882 885 rc = VERR_JSON_MALFORMED; 883 886 } … … 947 950 break; 948 951 } 952 953 papValues = papValuesNew; 954 papszNames = papszNamesNew; 949 955 } 950 956 951 Assert(cMembers < cMembers );957 Assert(cMembers < cMembersMax); 952 958 papszNames[cMembers] = pszName; 953 959 papValues[cMembers] = pVal; 954 960 cMembers++; 955 961 956 /* Next token. */ 962 /* Skip value separator and continue with next token. */ 963 bool fSkippedSep = rtJsonTokenizerConsumeIfMatched(pTokenizer, RTJSONTOKENCLASS_VALUE_SEPARATOR); 957 964 rc = rtJsonTokenizerGetToken(pTokenizer, &pToken); 965 966 if ( RT_SUCCESS(rc) 967 && !fSkippedSep 968 && pToken->enmClass != RTJSONTOKENCLASS_END_OBJECT) 969 rc = VERR_JSON_MALFORMED; 958 970 } 959 971 }
Note:
See TracChangeset
for help on using the changeset viewer.