Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
5129 commits behind the upstream repository.
  • Moritz Angermann's avatar
    df81536f
    [PEi386 linker] Bounds check and null-deref guard · df81536f
    Moritz Angermann authored and Marge Bot's avatar Marge Bot committed
    We should resonably be able to expect that we won't exceed the number of
    sections if we assume to be dealing with legal object files. We can however
    not guarantee that we get some negative values, and while we try to
    special case most, we should exclude negative indexing into the sections
    array.
    
    We also need to ensure that we do not try to derefences targetSection,
    if it is NULL, due to the switch statement.
    df81536f
    History
    [PEi386 linker] Bounds check and null-deref guard
    Moritz Angermann authored and Marge Bot's avatar Marge Bot committed
    We should resonably be able to expect that we won't exceed the number of
    sections if we assume to be dealing with legal object files. We can however
    not guarantee that we get some negative values, and while we try to
    special case most, we should exclude negative indexing into the sections
    array.
    
    We also need to ensure that we do not try to derefences targetSection,
    if it is NULL, due to the switch statement.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.