Fix OOB access in ImProcFunctions::MadRgb, fixes #3379
This commit is contained in:
parent
40ce1bedaf
commit
2ee160dcf7
@ -2185,7 +2185,7 @@ float ImProcFunctions::MadRgb(float * DataList, const int datalen)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < datalen; ++i) {
|
for (i = 0; i < datalen; ++i) {
|
||||||
histo[min(65536, abs(static_cast<int>(DataList[i])))]++;
|
histo[min(65535, abs(static_cast<int>(DataList[i])))]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//find median of histogram
|
//find median of histogram
|
||||||
|
Loading…
x
Reference in New Issue
Block a user