3 | | Thus clearly the condition fails.Also there can be overflow error using the previous condition. |
4 | | 2.Yeah I assumed the sector size to be 512 which is wrong in some cases. So I think the max limit is {{{UINT32_MAX * SECTOR_SIZE}}}, so how do I get the SectorSize directly? |
5 | | Any suggestions ? |
| 3 | Thus clearly the condition fails. Also there can be overflow error using the previous condition. Moreover the offset wasn't been checked anywhere. |
| 4 | |
| 5 | 2.Yeah I assumed the sector size to be 512 , the max limit is {{{UINT32_MAX * SECTOR_SIZE}}}, but then since MBR assumes 512 bytes sectors , so I think that's fine. |
| 6 | |