Skip to content
Snippets Groups Projects
  • Richard van der Hoff's avatar
    8e554ab5
    Avoid buffer overrun on encryption · 8e554ab5
    Richard van der Hoff authored
    Make sure we null-terminate encrypted strings before passing them to
    UTF8ToString.
    
    This used to work when we allocated the buffer on the stack, because it turns
    out that allocate() zeroinits the returned memory. malloc(), of course, does
    not.
    8e554ab5
    History
    Avoid buffer overrun on encryption
    Richard van der Hoff authored
    Make sure we null-terminate encrypted strings before passing them to
    UTF8ToString.
    
    This used to work when we allocated the buffer on the stack, because it turns
    out that allocate() zeroinits the returned memory. malloc(), of course, does
    not.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.