Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    4664bafc
    rts: Always truncate output files · 4664bafc
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously there were numerous places in the RTS where we would fopen
    with the "w" flag string. This is wrong as it will not truncate the
    file. Consequently if we write less data than the previous length of the
    file we will leave garbage at its end.
    
    Fixes #16993.
    4664bafc
    History
    rts: Always truncate output files
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously there were numerous places in the RTS where we would fopen
    with the "w" flag string. This is wrong as it will not truncate the
    file. Consequently if we write less data than the previous length of the
    file we will leave garbage at its end.
    
    Fixes #16993.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.