Changeset 2d5a2737 in mainline


Ignore:
Timestamp:
2020-03-11T08:34:18Z (4 years ago)
Author:
Manuele Conti <manuele.conti@…>
Parents:
badfbc0
Message:

Avoid array 'tmap→tasks[32]' accessed at index 32, which is out of bounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/src/payload.c

    rbadfbc0 r2d5a2737  
    243243        tmap->cnt = 0;
    244244
    245         for (int i = 0; i <= TASKMAP_MAX_RECORDS; i++) {
     245        for (int i = 0; i < TASKMAP_MAX_RECORDS; i++) {
    246246                /*
    247247                 * `task` holds the location and size of the previous component.
Note: See TracChangeset for help on using the changeset viewer.