Branch: refs/heads/gh17847 Home: https://github.com/Perl/perl5 Commit: abf01f972927b3a562672d63a470eeab172cbf1d https://github.com/Perl/perl5/commit/abf01f972927b3a562672d63a470eeab172cbf1d Author: Hugo van der Sanden <h...@crypt.org> Date: 2021-05-22 (Sat, 22 May 2021)
Changed paths: M regcomp.c Log Message: ----------- [gh 17847] Include data->pos_delta in #if'd-out diagnostic Commit: 2f2ea8a9b81f6637fbefd8e4e9fc5e1bfdf425b8 https://github.com/Perl/perl5/commit/2f2ea8a9b81f6637fbefd8e4e9fc5e1bfdf425b8 Author: Hugo van der Sanden <h...@crypt.org> Date: 2021-05-22 (Sat, 22 May 2021) Changed paths: M regcomp.c Log Message: ----------- [gh 17847] avoid overflow on delta in study_chunk delta and pos_delta may hold OPTIMIZE_INFTY to represent infinity. Commit: b9eed087b329a1048a42f7c4d9f5a13799114a98 https://github.com/Perl/perl5/commit/b9eed087b329a1048a42f7c4d9f5a13799114a98 Author: Hugo van der Sanden <h...@crypt.org> Date: 2021-05-22 (Sat, 22 May 2021) Changed paths: M regcomp.c Log Message: ----------- [gh 17847] data->pos_delta should stick at infinity The expression we're about to add to data->pos_delta in this part of study_chunk() can be both positive or negative; however while we apply an overflow check to avoid exceeding OPTIMIZE_INFTY, we were happily subtracting from it when the expression was negative, making it no longer infinite. Compare: https://github.com/Perl/perl5/compare/c14c117a739a...b9eed087b329