#9489: Divide Error Exception - GPT Partition Table Driver ----------------------------------------+---------------------------- Reporter: kallisti5 | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: Partitioning Systems/GPT | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: 9603 Has a Patch: 0 | Platform: All ----------------------------------------+---------------------------- Comment (by phoudoin): I don't have yet a working Haiku system, but this one should be easy to fix in src/add-ons/kernel/partitioning_systems/gpt/efi_gpt.cpp: {{{ static float efi_gpt_identify_partition(int fd, partition_data* partition, void** _cookie) { + if (partition->block_size == 0) + return -1; + EFI::Header* header = new (std::nothrow) EFI::Header(fd, (partition->size - 1) / partition->block_size, partition->block_size); status_t status = header->InitCheck(); if (status != B_OK) { delete header; return -1; } }}} Could some of you guys check it for me? Thanks. -- Ticket URL: <http://dev.haiku-os.org/ticket/9489#comment:2> Haiku <http://dev.haiku-os.org> Haiku - the operating system.