HomeFreeBSD

regcomp: use unsigned char when testing for escapes

Description

regcomp: use unsigned char when testing for escapes

  • cast GETNEXT to unsigned where it is being promoted to int to prevent sign-extension (really it would have been better for PEEK*() and GETNEXT() to return unsigned char; this would have removed a ton of (uch) casts, but it is too intrusive for now).
  • fix an isalpha that should have been iswalpha

PR: 264275, 274032
Reviewed by: kevans, eugen (previous version)
Obtained from: NetBSD
Differential Revision: https://reviews.freebsd.org/D41947

Details

Provenance
christos_netbsd.orgAuthored on Aug 30 2023, 8:37 PM
yuripvCommitted on Sep 25 2023, 10:49 PM
Reviewer
kevans
Differential Revision
D41947: regcomp: use unsigned char when testing for escapes
Parents
rG61f8df6a13a3: mfc-candidates: search by committer only, not author
Branches
Unknown
Tags
Unknown