<feed xmlns='http://www.w3.org/2005/Atom'>
<title>glusterfs.git/libglusterfs/src/dict.c, branch v3.0.5rc1</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/'/>
<entry>
<title>More robust dictionary (un)serialization (fixes bug #397).</title>
<updated>2009-12-21T05:38:33+00:00</updated>
<author>
<name>Hraban Luyat</name>
<email>hraban@0brg.net</email>
</author>
<published>2009-12-19T15:47:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=2a51ab19e6370325a5ebac9ed63f8606738919ec'/>
<id>2a51ab19e6370325a5ebac9ed63f8606738919ec</id>
<content type='text'>
Hello,

This patch fixes bug 397: dictionary (de)serialization used pointer
casting which forced word-alignment on (at least) armv5tel, causing
corruption while writing and reading buffers into memory. It also adds
some debugging (more information in case of errors).

I tried to send this a few times already but I think it got bounced from
the list.

Greetings,

Hraban Luyat

Signed-off-by: Hraban Luyat &lt;hraban@0brg.net&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 397 (dictionary serialization / deserialization fails on armv5tel)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=397
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hello,

This patch fixes bug 397: dictionary (de)serialization used pointer
casting which forced word-alignment on (at least) armv5tel, causing
corruption while writing and reading buffers into memory. It also adds
some debugging (more information in case of errors).

I tried to send this a few times already but I think it got bounced from
the list.

Greetings,

Hraban Luyat

Signed-off-by: Hraban Luyat &lt;hraban@0brg.net&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 397 (dictionary serialization / deserialization fails on armv5tel)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=397
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed occurrences of Z Research to Gluster.</title>
<updated>2009-10-07T10:54:49+00:00</updated>
<author>
<name>Vijay Bellur</name>
<email>vijay@gluster.com</email>
</author>
<published>2009-10-05T23:59:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=0b1197defa255ee533e568c9534bc6a5b5aadc29'/>
<id>0b1197defa255ee533e568c9534bc6a5b5aadc29</id>
<content type='text'>
Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix build warnings in 'libglusterfs/'</title>
<updated>2009-07-20T21:28:53+00:00</updated>
<author>
<name>Amar Tumballi</name>
<email>amar@gluster.com</email>
</author>
<published>2009-07-17T22:41:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=632cce5e720acaa28ab680a6850f2aa8289d4628'/>
<id>632cce5e720acaa28ab680a6850f2aa8289d4628</id>
<content type='text'>
return value of 'asprintf' was not checked, and the flow was
continuing without returning error, which could cause potential
segfaults in code (mostly possible during ENOMEM case).

Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;

BUG: 130 (build warnings)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=130
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
return value of 'asprintf' was not checked, and the flow was
continuing without returning error, which could cause potential
segfaults in code (mostly possible during ENOMEM case).

Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;

BUG: 130 (build warnings)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=130
</pre>
</div>
</content>
</entry>
<entry>
<title>Include glusterfs.h in dict.c</title>
<updated>2009-06-11T14:51:26+00:00</updated>
<author>
<name>Vikas Gorur</name>
<email>vikas@gluster.com</email>
</author>
<published>2009-06-09T05:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=f7ca417394aeb5a8c2144e3b2ae6493ef172b32d'/>
<id>f7ca417394aeb5a8c2144e3b2ae6493ef172b32d</id>
<content type='text'>
Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anand V. Avati &lt;avati@dev.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dict.c: make dict_serialized_length and dict_serialize to hold locks.</title>
<updated>2009-05-16T11:10:26+00:00</updated>
<author>
<name>Raghavendra G</name>
<email>raghavendra@zresearch.com</email>
</author>
<published>2009-05-15T10:55:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=254f770af6ae6ff207fc567b6576a31469c84f67'/>
<id>254f770af6ae6ff207fc567b6576a31469c84f67</id>
<content type='text'>
Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dict.c: Add dict_allocate_and_serialize</title>
<updated>2009-05-16T11:10:18+00:00</updated>
<author>
<name>Raghavendra G</name>
<email>raghavendra@zresearch.com</email>
</author>
<published>2009-05-15T10:55:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=9669c70c901474dc21ef08e49478b5f5dead8f64'/>
<id>9669c70c901474dc21ef08e49478b5f5dead8f64</id>
<content type='text'>
- this procedure atomically allocates a buffer and serializes dict into it.
  - this procedure helps avoid memory corruptions due to race conditions where
    in new members are added into dict between allocating a buffer for
    serializing and actually serializing buffer into it.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- this procedure atomically allocates a buffer and serializes dict into it.
  - this procedure helps avoid memory corruptions due to race conditions where
    in new members are added into dict between allocating a buffer for
    serializing and actually serializing buffer into it.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed the gf_log warning for return of null via CALLOC from 'old' to 'newdata'</title>
<updated>2009-03-26T10:58:28+00:00</updated>
<author>
<name>Bharat Shetty Barkur</name>
<email>bharat.shetty@gmail.com</email>
</author>
<published>2009-03-22T17:57:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=3df266c278ab74c6bf1980bd17a545595bd04344'/>
<id>3df266c278ab74c6bf1980bd17a545595bd04344</id>
<content type='text'>
Fixed the warning message to be more clearer for return of the null by CALLOC, by changing old to newdata.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed the warning message to be more clearer for return of the null by CALLOC, by changing old to newdata.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>updated copyright header to extend copyright upto 2009</title>
<updated>2009-02-26T16:48:46+00:00</updated>
<author>
<name>Basavanagowda Kanur</name>
<email>gowda@gluster.com</email>
</author>
<published>2009-02-26T15:44:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=3d8bc3cbafa84a46e43e46f69d3e7d617d746012'/>
<id>3d8bc3cbafa84a46e43e46f69d3e7d617d746012</id>
<content type='text'>
updated copyright header to include 2009.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
updated copyright header to include 2009.

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>new functions dict_{get,set}_double for float/double value</title>
<updated>2009-02-21T15:37:31+00:00</updated>
<author>
<name>Harshavardhana</name>
<email>harsha@zresearch.com</email>
</author>
<published>2009-02-19T18:26:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=9679f8db65de29a40f622c12c2cc538d70b052b2'/>
<id>9679f8db65de29a40f622c12c2cc538d70b052b2</id>
<content type='text'>
fixed warning

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixed warning

Signed-off-by: Anand V. Avati &lt;avati@amp.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Added all files</title>
<updated>2009-02-18T12:06:07+00:00</updated>
<author>
<name>Vikas Gorur</name>
<email>vikas@zresearch.com</email>
</author>
<published>2009-02-18T12:06:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=77adf4cd648dce41f89469dd185deec6b6b53a0b'/>
<id>77adf4cd648dce41f89469dd185deec6b6b53a0b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
