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

(cherry picked from commit 3fb80f1476c7776f04ba7ef6d08397cef6abcfb0)
(cherry picked from commit 56b09feb23d98fcd0c4aed8d4f907a5a2f6b5ea9)

Approved by: so
Security: FreeBSD-EN-23:14

Details

Provenance
christos_netbsd.orgAuthored on Aug 30 2023, 8:37 PM
emasteCommitted on Nov 8 2023, 1:02 AM
Parents
rGe648a628a66a: freebsd-update: create deep BEs by default
Branches
Unknown
Tags
Unknown