Skip to content

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

Merged
tqchen merged 1 commit into
apache:masterfrom
chyunsu3:use_int_for_eof
Dec 7, 2018
Merged

[BUGFIX] GetChar() in base64.h should return int, not char#2255
tqchen merged 1 commit into
apache:masterfrom
chyunsu3:use_int_for_eof

Conversation

@chyunsu3

@chyunsu3 chyunsu3 commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

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

tqchen commented Dec 7, 2018

Copy link
Copy Markdown
Member

Thanks, @hcho3 !

@chyunsu3
chyunsu3 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