Revert "Fix OOB access in ImProcFunctions::MadRgb, fixes #3379"
This reverts commit dd47d8b6c1
.
This commit is contained in:
@@ -2222,7 +2222,7 @@ float ImProcFunctions::MadRgb( float * DataList, const int datalen)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < datalen; i++) {
|
||||
histo[min(65535, abs((int)DataList[i]))]++;
|
||||
histo[min(65536, abs((int)DataList[i]))]++;
|
||||
}
|
||||
|
||||
//find median of histogram
|
||||
|
Reference in New Issue
Block a user