diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-02-21 08:30:22 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-02-21 09:24:25 +0100 |
| commit | 966b944095edf9910a332bb73249b5d7d6ebeb2f (patch) | |
| tree | 1ef793bf725c0cb8714af6785cb709211a366d92 /src/stdalloc.c | |
| parent | 014d49559acfe9351a3b1f77e9aa43513ce53c94 (diff) | |
| download | libgit2-966b944095edf9910a332bb73249b5d7d6ebeb2f.tar.gz | |
tests: apply: verify that we correctly truncate the source buffer
Previously, we would fail to correctly truncate the source buffer
if the source has more than one line and ends with a non-newline
character. In the following call, we thus truncate the source
string in the middle of the second line. Without the bug fixed,
we would successfully apply the patch to the source and return
success. With the overflow being fixed, we should return an
error now.
Diffstat (limited to 'src/stdalloc.c')
0 files changed, 0 insertions, 0 deletions
