<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/examples, branch peff/binary-search-do-while</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>examples: network: refactor credentials callback</title>
<updated>2017-05-15T05:34:03+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-05-03T10:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f0ca00e013885479228c4f076989566a2b77221b'/>
<id>f0ca00e013885479228c4f076989566a2b77221b</id>
<content type='text'>
The credentials callback reads the username and password via scanf into
fixed-length arrays. While these are simply examples and as such not as
interesting, the unchecked return value of scanf causes GCC to emit
warnings. So while we're busy to shut up GCC, we also fix the possible
overflow of scanf by using getline instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The credentials callback reads the username and password via scanf into
fixed-length arrays. While these are simply examples and as such not as
interesting, the unchecked return value of scanf causes GCC to emit
warnings. So while we're busy to shut up GCC, we also fix the possible
overflow of scanf by using getline instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: fix memory leaks</title>
<updated>2017-01-12T21:04:36+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f9ea8c6a142d5c9c3248123acab5ea3950dfc049'/>
<id>f9ea8c6a142d5c9c3248123acab5ea3950dfc049</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: display config only if it was found</title>
<updated>2017-01-12T21:01:45+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ed2b1c7e75ab9d8aa4b23eec81bb023bcfdabbda'/>
<id>ed2b1c7e75ab9d8aa4b23eec81bb023bcfdabbda</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: narrow down scope of loop variables</title>
<updated>2017-01-12T21:01:23+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:01:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=5aa101078eec51a99fbbf4015162da7e254bb320'/>
<id>5aa101078eec51a99fbbf4015162da7e254bb320</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: clean up committer/author variables</title>
<updated>2017-01-12T21:00:53+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:00:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=8572e2252b9013cef7513f4e55523603c4d95ff6'/>
<id>8572e2252b9013cef7513f4e55523603c4d95ff6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix examples/network/clone.c: heap-buffer-overflow</title>
<updated>2017-01-09T06:09:57+00:00</updated>
<author>
<name>Force.Charlie-I</name>
<email>fcharlie@users.noreply.github.com</email>
</author>
<published>2017-01-09T06:09:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3fdba15c2f3fd8577dff6cbc61073b723136af4d'/>
<id>3fdba15c2f3fd8577dff6cbc61073b723136af4d</id>
<content type='text'>
Format of a length of string to the correct format is:%.*s</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Format of a length of string to the correct format is:%.*s</pre>
</div>
</content>
</entry>
<entry>
<title>Fix issue #4046 Seg fault in config_files()</title>
<updated>2016-12-29T14:43:03+00:00</updated>
<author>
<name>Douglas Swanson</name>
<email>dglsswnsn@gmail.com</email>
</author>
<published>2016-12-29T14:43:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=832278bf36a382d51d8617d5575164a62ca26e6b'/>
<id>832278bf36a382d51d8617d5575164a62ca26e6b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: add: fix type casting warning</title>
<updated>2016-10-10T07:04:42+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-08-16T09:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=fc29391950df72222be29cb6b510cc119d65e150'/>
<id>fc29391950df72222be29cb6b510cc119d65e150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: diff: parse correct types for line-diffopts</title>
<updated>2016-10-10T07:04:42+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-08-16T09:01:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=5c2a8361d779477b4d3474c660157bd62e750fe2'/>
<id>5c2a8361d779477b4d3474c660157bd62e750fe2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: fix warnings in network/fetch.c</title>
<updated>2016-10-10T07:04:42+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-08-16T08:55:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=7314da105532306dad21843c8997b746b02fa3ed'/>
<id>7314da105532306dad21843c8997b746b02fa3ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
