Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] GetChar() in base64.h should return int, not char #2255

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

hcho3
Copy link
Contributor

@hcho3 hcho3 commented Dec 7, 2018

Currently, the GetChar() function in base64.h has int type, which silently truncates EOF. This will cause undefined behavior on ARM targets, where char type is unsigned.

Fixes #2254

@tqchen tqchen merged commit 50cfd3c into apache:master Dec 7, 2018
@tqchen
Copy link
Member

tqchen commented Dec 7, 2018

Thanks, @hcho3 !

@hcho3 hcho3 deleted the use_int_for_eof branch December 7, 2018 15:47
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
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.

2 participants