<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/apply/fromfile.c, branch ethomson/https_proxy</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>Merge pull request #4847 from noahp/noahp/null-arg-fixes</title>
<updated>2018-11-18T23:15:56+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2018-11-18T23:15:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=646a94be5f01001e09796d03d5f6c077b21b9532'/>
<id>646a94be5f01001e09796d03d5f6c077b21b9532</id>
<content type='text'>
tests: 🌀 address two null argument instances</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests: 🌀 address two null argument instances</pre>
</div>
</content>
</entry>
<entry>
<title>tests: address two null argument instances</title>
<updated>2018-11-13T13:22:25+00:00</updated>
<author>
<name>Noah Pendleton</name>
<email>2538614+noahp@users.noreply.github.com</email>
</author>
<published>2018-11-13T13:22:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f127ce3505e308788dd12dcda9b18dc208da1220'/>
<id>f127ce3505e308788dd12dcda9b18dc208da1220</id>
<content type='text'>
Handle two null argument cases that occur in the unit tests.
One is in library code, the other is in test code.

Detected by running unit tests with undefined behavior sanitizer:
```bash
 # build
mkdir build &amp;&amp; cd build
cmake -DBUILD_CLAR=ON -DCMAKE_C_FLAGS="-fsanitize=address \
-fsanitize=undefined -fstack-usage -static-libasan" ..
cmake --build .

 # run with asan
ASAN_OPTIONS="allocator_may_return_null=1" ./libgit2_clar
...
............../libgit2/src/apply.c:316:3: runtime error: null pointer \
passed as argument 1, which is declared to never be null
...................../libgit2/tests/apply/fromfile.c:46:3: runtime \
error: null pointer passed as argument 1, which is declared to never be null
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle two null argument cases that occur in the unit tests.
One is in library code, the other is in test code.

Detected by running unit tests with undefined behavior sanitizer:
```bash
 # build
mkdir build &amp;&amp; cd build
cmake -DBUILD_CLAR=ON -DCMAKE_C_FLAGS="-fsanitize=address \
-fsanitize=undefined -fstack-usage -static-libasan" ..
cmake --build .

 # run with asan
ASAN_OPTIONS="allocator_may_return_null=1" ./libgit2_clar
...
............../libgit2/src/apply.c:316:3: runtime error: null pointer \
passed as argument 1, which is declared to never be null
...................../libgit2/tests/apply/fromfile.c:46:3: runtime \
error: null pointer passed as argument 1, which is declared to never be null
```
</pre>
</div>
</content>
</entry>
<entry>
<title>apply: introduce a hunk callback</title>
<updated>2018-11-05T15:53:59+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2018-09-29T18:32:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=47cc5f85e9b95880e03cfa04d9708a643c587a13'/>
<id>47cc5f85e9b95880e03cfa04d9708a643c587a13</id>
<content type='text'>
Introduce a callback to patch application that allows consumers to
cancel hunk application.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce a callback to patch application that allows consumers to
cancel hunk application.
</pre>
</div>
</content>
</entry>
<entry>
<title>Convert usage of `git_buf_free` to new `git_buf_dispose`</title>
<updated>2018-06-10T17:34:37+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-02-08T11:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=ecf4f33a4e327a91496f72816f9f02d923e5af05'/>
<id>ecf4f33a4e327a91496f72816f9f02d923e5af05</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git_patch_parse_ctx: refcount the context</title>
<updated>2016-05-26T18:01:08+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-04-21T04:04:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=17572f67ed9a3eb57b981d97468bd216d571bf10'/>
<id>17572f67ed9a3eb57b981d97468bd216d571bf10</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>patch: `git_patch_from_patchfile` -&gt; `git_patch_from_buffer`</title>
<updated>2016-05-26T18:01:08+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-11-21T17:27:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=440e3bae10a4758d5de8d7b8699bf4c412c1a163'/>
<id>440e3bae10a4758d5de8d7b8699bf4c412c1a163</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>apply: test postimages that grow/shrink original</title>
<updated>2016-05-26T18:01:07+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-09-25T16:09:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=0ff723cc90c258f2b78285e7e4b55352e1bc05cd'/>
<id>0ff723cc90c258f2b78285e7e4b55352e1bc05cd</id>
<content type='text'>
Test with some postimages that actually grow/shrink from the
original, adding new lines or removing them.  (Also do so without
context to ensure that we can add/remove from a non-zero part of
the line vector.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test with some postimages that actually grow/shrink from the
original, adding new lines or removing them.  (Also do so without
context to ensure that we can add/remove from a non-zero part of
the line vector.)
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce git_patch_options, handle prefixes</title>
<updated>2016-05-26T18:01:06+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-09-23T17:40:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=82175084e17d31051e691ebdcb5990a12d0230e7'/>
<id>82175084e17d31051e691ebdcb5990a12d0230e7</id>
<content type='text'>
Handle prefixes (in terms of number of path components) for patch
parsing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle prefixes (in terms of number of path components) for patch
parsing.
</pre>
</div>
</content>
</entry>
<entry>
<title>apply: move patch data to patch_common.h</title>
<updated>2016-05-26T18:01:04+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-09-16T18:40:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=8bca8b9e0379910686937380e5ac459c51a4864f'/>
<id>8bca8b9e0379910686937380e5ac459c51a4864f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>patch: abstract patches into diff'ed and parsed</title>
<updated>2016-05-26T18:01:04+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-09-11T12:37:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=804d5fe9f59f4d8548da9f650bc43050951f26d7'/>
<id>804d5fe9f59f4d8548da9f650bc43050951f26d7</id>
<content type='text'>
Patches can now come from a variety of sources - either internally
generated (from diffing two commits) or as the results of parsing
some external data.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patches can now come from a variety of sources - either internally
generated (from diffing two commits) or as the results of parsing
some external data.
</pre>
</div>
</content>
</entry>
</feed>
