• Show log

    Commit

  • Hash : 33b1d3fd
    Author : lhchavez
    Date : 2022-04-05T13:10:33

    [midx] Fix an undefined behavior (left-shift signed overflow)
    
    There was a missing check to ensure that the `off64_t` (which is a
    signed value) didn't overflow when parsing it from the midx file. This
    shouldn't have huge repercusions since the parsed value is immediately
    validated afterwards, but then again, there is no such thing as "benign"
    undefined behavior.
    
    This change makes all the bitwise arithmetic happen with unsigned types
    and is only casted to `off64_t` until the very end.
    
    Thanks to Taotao Gu for finding and reporting this!
    

  • README.md

  • libgit2 sources

    This is the source that makes up the core of libgit2 and its related projects.

    • cli
      A git-compatible command-line interface that uses libgit2.
    • libgit2
      This is the libgit2 project, a cross-platform, linkable library implementation of Git that you can use in your application.
    • util
      A shared utility library for these projects.