Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset eed70f1 in mainline


Ignore:
Timestamp:
2015-11-04T18:05:52Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
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.