HomePhabricator

edje_entry: avoid strstr undefined behaviour

Authored by ali.alzyod on Dec 19 2019, 10:13 PM.

Description

edje_entry: avoid strstr undefined behaviour

strstr behaviour is undefined when passing null to it, we will check if null is passed, then skip.
elm_entry had issue, where crash happened when click on link for example.

elementry_test -> entry -> click on link (crash will happened)

T8535

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D10877

Details

Marcel Hollerbach <mail@marcel-hollerbach.de> committed rEFLed0572a33a28: edje_entry: avoid strstr undefined behaviour (authored by ali.alzyod).Dec 23 2019, 8:43 AM