mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-19 09:45:43 -04:00
NE Alpha 35
This commit is contained in:
parent
52c7a56f68
commit
4160a6a580
24 changed files with 477 additions and 94 deletions
|
@ -557,7 +557,7 @@ size_t len;
|
|||
|
||||
a->slen = i;
|
||||
len = strlen (str + i);
|
||||
if (len + 1 > INT_MAX - i ||
|
||||
if (len + 1 > (size_t)(INT_MAX - i) ||
|
||||
0 > balloc (a, (int) (i + len + 1))) return BSTR_ERR;
|
||||
bBlockCopy (a->data + i, str + i, (size_t) len + 1);
|
||||
a->slen += (int) len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue