This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add a test condition for EOF in ctype
AbandonedPublic

Authored by xgupta on Apr 9 2023, 12:13 AM.

Details

Summary

This address https://github.com/llvm/llvm-project/issues/62000.

Header stdio.h is included because EOF define there.
The loop condition changed from <255 to <=255 to include EOF.

Diff Detail

Event Timeline

xgupta created this revision.Apr 9 2023, 12:13 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 9 2023, 12:13 AM
xgupta requested review of this revision.Apr 9 2023, 12:13 AM
xgupta updated this revision to Diff 511960.Apr 9 2023, 12:16 AM

Update < x256 to <= 255