Hi. I'm Jiyoun park.

there is bug in evas_scale_smooth_scaler_up.c (Woohyun Jung found it)

if src_region_x exceed 32767, it make overflow when line 40 <<<<<<<   dsxx = 
((srw - 1) << 16) / (drw - 1)  >>>>
(and maybe  dsyy = ((srh - 1) << 16) / (drh - 1) code also make overflow)

this overflow make segmentation fault in line: 211( p0 = p1 = p2 = p3 = *p;)

the value of src_region_x can be exceed 30000, so we have to deal with this 
overflow. 
 
I think this shift maybe related with fixed point. 
can we reduce 16bit shift to 14 or other value ?
 (but this down scale quality. and this still make over flow if the 
src_region_x exceed 60000 or 1200000)

Is there any method to deal with overflow error fundamentally?

thanks.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to