Name |
Last commit
|
Last update |
---|---|---|
.. | ||
parse.c | ||
patch_common.h | ||
print.c |
When the patch contains lines close to INT_MAX, then it may happen that we end up with an integer overflow when calculating the line of the current diff hunk. Reject such patches as unreasonable to avoid the integer overflow. As the calculation is performed on integers, we introduce two new helpers `git__add_int_overflow` and `git__sub_int_overflow` that perform the integer overflow check in a generic way.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
parse.c | Loading commit data... | |
patch_common.h | Loading commit data... | |
print.c | Loading commit data... |