Evas filters: Add some crash safety

This commit is contained in:
Jean-Philippe Andre 2015-06-25 15:12:32 +09:00
parent 14c1434960
commit 4234832713
1 changed files with 2 additions and 0 deletions

View File

@ -1814,6 +1814,8 @@ _clip_to_target(int *sx /* OUT */, int *sy /* OUT */, int sw, int sh,
(*rows) = sh;
if ((*rows) > dh) (*rows) = dh;
}
if ((*cols) < 0) *cols = 0;
if ((*rows) < 0) *rows = 0;
}
#ifdef FILTERS_DEBUG