]> Kevux Git Server - fll/commit
Security: Invalid read in trim comparison functions.
authorKevin Day <kevin@kevux.org>
Wed, 29 Mar 2023 03:37:05 +0000 (22:37 -0500)
committerKevin Day <kevin@kevux.org>
Wed, 29 Mar 2023 03:37:05 +0000 (22:37 -0500)
commit4d19713c7c113481124958284f7390b8bdc48e97
tree315aa17a3390cda32c063142030c17723a3572f9
parenta1986751af87422e45fa4d0415664b62c868cd04
Security: Invalid read in trim comparison functions.

Writing unit tests exposed this problem.

The last1 and last2 positions could be the exclusive stop points.
The comparison checks fail to handle this situation and expect the last1 and last2 variables to not be positioned at an exclusive stop point.
This results in an invalid read.
level_0/f_compare/c/private-compare.c