• Show log

    Commit

  • Hash : ade0d9c6
    Author : Patrick Steinhardt
    Date : 2017-02-13T13:46:17

    commit: avoid possible use-after-free
    
    When extracting a commit's signature, we first free the object and only
    afterwards put its signature contents into the result buffer. This works
    in most cases - the free'd object will normally be cached anyway, so we
    only end up decrementing its reference count without actually freeing
    its contents. But in some more exotic setups, where caching is disabled,
    this can definitly be a problem, as we might be the only instance
    currently holding a reference to this object.
    
    Fix this issue by first extracting the contents and freeing the object
    afterwards only.