kopia lustrzana https://gitlab.com/sane-project/frontends
Check for width==0 in restore_preview_image() to avoid floating point exception
rodzic
0bdd5a65e7
commit
e6e433cea0
|
@ -1,3 +1,8 @@
|
|||
2001-11-29 Oliver Schwartz <Oliver.Schwartz@gmx.de>
|
||||
|
||||
* preview.c: in function restore_preview_image() check for
|
||||
width==0 to avoid floating point exception
|
||||
|
||||
2001-11-04 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* sane-frontends-lsm: New file. Created Linux Software Map
|
||||
|
|
|
@ -871,6 +871,8 @@ restore_preview_image (Preview *p)
|
|||
|
||||
p->image_width = width;
|
||||
p->image_height = height;
|
||||
if ((width == 0) || (height == 0))
|
||||
return;
|
||||
p->image_data = malloc (3*width*height);
|
||||
if (!p->image_data)
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue