efl: `eina_value_list_vinsert` assumes that the position is always valid
authorLucas Cavalcante de Sousa <lucas@expertisesolutions.com.br>
Fri, 7 Feb 2020 18:52:15 +0000 (13:52 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 11 Feb 2020 22:00:06 +0000 (07:00 +0900)
commit0f3b6679c0694e8441f0bb925cdfbfaed869e9f7
treeefd4f9849eb9974976953a55d5dac97b5a9bc919
parent3575913002861c0fad225f42eb16b75072662fb2
efl: `eina_value_list_vinsert` assumes that the position is always valid

Summary:
The eina_value_list_vinsert at src/lib/eina_inline_value.x was not checking if the desired position was valid:
When inserting in an empty list in any out of bounds position it actually createded a list with the head being the desired value.
When inserting in a non-empty list in an out of bounds position caused a c error.
Now both cases return EINA_FALSE

Ref T8611

Test Plan:
Meson configured with -Dbindings=mono,cxx -Dmono-beta=true, and tests runned
with ninja test all.

Reviewers: felipealmeida, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8611

Differential Revision: https://phab.enlightenment.org/D11301
src/lib/eina/eina_inline_value.x
src/tests/eina/eina_test_value.c