In the config_id validity check logic,
it only check whether config_id is in the hex value range or is an unerscore.
But this is causing problems because in reality
it can contain all lowercase letters.
So it was modified to also check for lowercase letters.
* This is a side effect caused by the following patch.
- Fix Stack buffer overflow and Path traversal
Change-Id: I23d0ebc1cc38b9f9e526df38539155c2308257eb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
return FALSE;
for (int i = 0; i < length; i++) {
- if (!(isxdigit(config_id[i])) && config_id[i] != '_')
+ if (!(islower(config_id[i])) &&
+ !(isdigit(config_id[i])) &&
+ config_id[i] != '_')
return FALSE;
}