x1000-installer: remove redundant overflow check

This overflow is impossible to trigger due to the simple
relationship between binary and hexadecimal numbers.

Change-Id: Ie8243129967abb935a77152a808765318052c979
This commit is contained in:
Aidan MacDonald 2021-11-28 14:38:09 +00:00
parent c086a3386f
commit 1ad60c3344

View file

@ -136,10 +136,8 @@ int xf_map_parseline(const char* line, struct xf_map* map)
if(int_val > UINT32_MAX/16)
return XF_E_INT_OVERFLOW;
int_val *= 16;
if(int_val > UINT32_MAX - digit_val)
return XF_E_INT_OVERFLOW;
int_val *= 16;
int_val |= digit_val;
}
}