mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
c086a3386f
commit
1ad60c3344
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue