···1-Simple bounds checks for CVE-2023-40889, based on third-party
2-fix by Remi Meier @
3-https://github.com/Raemi/zbar/commit/5e8acc6974f17e56c3ddaa5509870beb8d7a599c
4-5---- a/zbar/qrcode/qrdec.c
6-+++ b/zbar/qrcode/qrdec.c
7-@@ -3900,8 +3900,8 @@ void qr_reader_match_centers(qr_reader *_reader,qr_code_data_list *_qrlist,
8- /*TODO: We might be able to accelerate this step significantly by
9- considering the remaining finder centers in a more intelligent order,
10- based on the first finder center we just chose.*/
11-- for(j=i+1;!mark[i]&&j<_ncenters;j++){
12-- for(k=j+1;!mark[j]&&k<_ncenters;k++)if(!mark[k]){
13-+ for(j=i+1; i < _ncenters && !mark[i]&&j<_ncenters;j++){
14-+ for(k=j+1; j < _ncenters && !mark[j]&&k<_ncenters;k++)if(!mark[k]){
15- qr_finder_center *c[3];
16- qr_code_data qrdata;
17- int version;