Skip to content

_tokenize_sentence parse problem 内存越界访问 #2

@tsunami87

Description

@tsunami87

if
cursor = “realm="acs", qop="auth", nonce="20e9345b45ea5c6d8b2a5e8f0e48572a", opaque="a501bd376871fd17cd3dff5cec98c232"”
/* Find next quotation mark /
if (NULL == (cursor = strchr(++cursor, '"'))) {
/
End of string /
break;
}
/
Comma should be after */
cursor++;
*cursor will be '"'
*(cursor++) = '\0';
*cursor will equal unknow character

so need to fix it as follows:
if(*cursor != '\0')
*(cursor++) = '\0';
else
break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions