mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-25 09:28:22 +08:00
Fix one more resource leak
This commit is contained in:
parent
5edd5c10ee
commit
be65f8ae06
@ -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…
Reference in New Issue
Block a user