Changeset e5ac4130 in mainline for boot/arch/ppc32/src/main.c


Ignore:
Timestamp:
2012-09-05T15:56:55Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9717e3
Parents:
7f8f9fd
Message:

add boot image size safety check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/src/main.c

    r7f8f9fd re5ac4130  
    103103        }
    104104       
     105        if (top >= (size_t) loader_address_pa) {
     106                printf("Inflated components overlap loader area.\n");
     107                printf("The boot image is too large. Halting.\n");
     108                halt();
     109        }
     110       
    105111        void *balloc_base;
    106112        void *balloc_base_pa;
Note: See TracChangeset for help on using the changeset viewer.