elm_slider: Add return value check
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 26 Feb 2020 07:35:28 +0000 (16:35 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 3 Mar 2020 21:15:12 +0000 (06:15 +0900)
Summary:
Calling eina_value_get() without checking return value.
CID: 1400991

Test Plan: N/A

Reviewers: YOhoho, Hermet, Jaehyun_Cho, CHAN

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11416

src/lib/elementary/elm_slider.c

index 6fc7750..3a8a03a 100644 (file)
@@ -1470,7 +1470,7 @@ _indi_default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
 
    if (type != EINA_VALUE_TYPE_DOUBLE) return EINA_FALSE;
 
-   eina_value_get(&value, &v);
+   if (!eina_value_get(&value, &v)) return EINA_FALSE;
    eina_strbuf_append_printf(str, sd->indi_template, v);
 
    return EINA_TRUE;