Revert "Fix OOB access in ImProcFunctions::MadRgb, fixes #3379"

This reverts commit dd47d8b6c1.
This commit is contained in:
heckflosse
2016-07-10 14:01:28 +02:00
parent dd47d8b6c1
commit 5e11f6bb83

View File

@@ -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