]> sourceware.org Git - bzip2.git/commit
Make sure to call isdigit and isspace with unsigned char master
authorMark Wielaard <mjw@redhat.com>
Tue, 9 Apr 2024 19:11:02 +0000 (21:11 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 9 Apr 2024 19:11:07 +0000 (21:11 +0200)
commitfbc4b11da543753b3b803e5546f56e26ec90c2a7
tree15dd820facfa1f465f20ee54c2ec9e03660591b8
parent9de658d248f9fd304afa3321dd7a9de1280356ec
Make sure to call isdigit and isspace with unsigned char

Casting to Int32 or int could create negative values. Which isspace
and isdigit don't handle. SEI CERT C Coding Standard STR37-C.

Resolve by casting to UChar or unsigned char instead of Int32 or int.

https://sourceware.org/bugzilla/show_bug.cgi?id=28283
bzip2.c
bzlib.c
This page took 0.024876 seconds and 5 git commands to generate.