1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 14:53:03 +04:00
Files
opencv/modules
Vincent Rabaud 542b3e8a64 Fix harmless signed integer overflow.
When computing:
t1 = (bayer[1] + bayer[bayer_step] + bayer[bayer_step+2] + bayer[bayer_step*2+1])*G2Y;
there is a T (unsigned short or char) multiplied by an int which can overflow.
Then again, it is stored to t1 which is unsigned so the overflow disappears.
Keeping all unsigned is safer.
2021-12-13 23:43:49 +01:00
..
2021-12-09 12:04:26 +01:00
2020-04-15 23:25:12 +09:00
2018-09-07 20:33:52 +09:00
2020-08-21 23:52:30 +09:00
2019-08-08 21:49:32 +09:00
2018-09-07 20:33:52 +09:00
2021-11-18 21:19:05 +01:00
2021-11-26 12:29:56 +01:00
2021-04-20 22:08:01 -04:00
2021-08-28 17:11:26 +00:00