Commit a7ce8a6
committed
Fix size_t cast in read_mac_metadata_blob
The size_t data type on 32 bit systems is smaller than int64_t. Check
the int64_t value before casting to size_t. If the value is too large
then stop operation instead of continuing operation with truncated
value.1 parent 3aeea1e commit a7ce8a6
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
| 1399 | + | |
1399 | 1400 | | |
1400 | 1401 | | |
1401 | 1402 | | |
| |||
1434 | 1435 | | |
1435 | 1436 | | |
1436 | 1437 | | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1437 | 1443 | | |
1438 | 1444 | | |
1439 | 1445 | | |
| |||
1447 | 1453 | | |
1448 | 1454 | | |
1449 | 1455 | | |
1450 | | - | |
| 1456 | + | |
1451 | 1457 | | |
1452 | 1458 | | |
1453 | 1459 | | |
1454 | 1460 | | |
1455 | | - | |
1456 | | - | |
| 1461 | + | |
| 1462 | + | |
1457 | 1463 | | |
1458 | 1464 | | |
1459 | 1465 | | |
| |||
0 commit comments