mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 15:15:04 -04:00
Fix one more resource leak
This commit is contained in:
parent
5edd5c10ee
commit
be65f8ae06
1 changed files with 4 additions and 1 deletions
|
@ -2398,7 +2398,10 @@ int i, c, v;
|
|||
} else {
|
||||
v = (bl->qty - 1) * len;
|
||||
if ((bl->qty > 512 || len > 127) &&
|
||||
v / len != bl->qty - 1) return NULL; /* Overflow */
|
||||
v / len != bl->qty - 1) {
|
||||
bstr__free (b);
|
||||
return NULL; /* Overflow */
|
||||
}
|
||||
if (v > INT_MAX - c) {
|
||||
bstr__free (b);
|
||||
return NULL; /* Overflow */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue