Changeset eed70f1 in mainline for uspace/lib/label/src/gpt.c


Ignore:
Timestamp:
2015-11-04T18:05:52Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cffa82aa
Parents:
d8513177
Message:

Fix buffer overrun when computing CRC of GPT header that is larger than the minimum size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/gpt.c

    rd8513177 reed70f1  
    945945        gpt_header_t *c;
    946946
    947         c = calloc(1, sizeof(gpt_header_t));
     947        c = calloc(1, hdr_size);
    948948        if (c == NULL)
    949949                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.