• Show log

    Commit

  • Hash : bc349045
    Author : Patrick Steinhardt
    Date : 2018-08-09T10:38:10

    smart_pkt: fix buffer overflow when parsing "ACK" packets
    
    We are being quite lenient when parsing "ACK" packets. First, we didn't
    correctly verify that we're not overrunning the provided buffer length,
    which we fix here by using `git__prefixncmp` instead of
    `git__prefixcmp`. Second, we do not verify that the actual contents make
    any sense at all, as we simply ignore errors when parsing the ACKs OID
    and any unknown status strings. This may result in a parsed packet
    structure with invalid contents, which is being silently passed to the
    caller. This is being fixed by performing proper input validation and
    checking of return codes.
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/clar

    • Write your modules and tests. Use good, meaningful names.

    • Make sure you actually build the tests by setting:

        cmake -DBUILD_CLAR=ON build/
    • Test:

        ./build/libgit2_clar
    • Make sure everything is fine.

    • Send your pull request. That’s it.