e_dnd: added size validation of e_drag 90/275790/2
authorJunseok Kim <juns.kim@samsung.com>
Tue, 31 May 2022 07:31:55 +0000 (16:31 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 7 Jun 2022 06:08:00 +0000 (06:08 +0000)
Change-Id: I0bc9808024507f34f4e5e5fa1499885ca275b674

src/bin/e_dnd.c

index aa264336863d572f293862d5eb4e297306200991..26f2717c66b816a9f09a2ec2ea15633278beaf73 100644 (file)
@@ -243,6 +243,7 @@ E_API void
 e_drag_resize(E_Drag *drag, int w, int h)
 {
    if ((drag->w == w) && (drag->h == h)) return;
+   if ((w <= 0) || (h <= 0)) return;
    drag->h = h;
    drag->w = w;
    if (_drag_current == drag)