Skip to content

cast to unsigned char before std::isspace in ParseTime#2061

Open
dxbjavid wants to merge 1 commit into
abseil:masterfrom
dxbjavid:parsetime-isspace-cast
Open

cast to unsigned char before std::isspace in ParseTime#2061
dxbjavid wants to merge 1 commit into
abseil:masterfrom
dxbjavid:parsetime-isspace-cast

Conversation

@dxbjavid
Copy link
Copy Markdown

std::isspace takes a value representable as unsigned char or EOF; sv->front() can yield a negative char when the input starts with a high-bit-set byte.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant