<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ds.git/lib/libsi18n, branch 573889</title>
<subtitle>Unnamed repository; edit this file to name it for gitweb.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/'/>
<entry>
<title>Bug 630097 - (cov#15473) NULL dereference in ResHashCreate()</title>
<updated>2010-09-15T16:11:06+00:00</updated>
<author>
<name>Nathan Kinder</name>
<email>nkinder@redhat.com</email>
</author>
<published>2010-09-14T21:53:43+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=50df94f549ae75669c071e610d08ffa9ed9e841c'/>
<id>50df94f549ae75669c071e610d08ffa9ed9e841c</id>
<content type='text'>
If there is a problem allocating pResHash, we jump to the error
label.  The error label then dereferences pResHash to do a deep
free, but it doesn't check if pResHash is NULL first.  We need to
check if pResHash is NULL before dereferencing it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If there is a problem allocating pResHash, we jump to the error
label.  The error label then dereferences pResHash to do a deep
free, but it doesn't check if pResHash is NULL first.  We need to
check if pResHash is NULL before dereferencing it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 630097 - (cov#11946) NULL dereference in ResHashCreate()</title>
<updated>2010-09-15T16:11:05+00:00</updated>
<author>
<name>Nathan Kinder</name>
<email>nkinder@redhat.com</email>
</author>
<published>2010-09-13T20:34:07+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=7c00bf728c3a8c20c08d76f66cccaf892c81a5f2'/>
<id>7c00bf728c3a8c20c08d76f66cccaf892c81a5f2</id>
<content type='text'>
If we jump to the error label due to an error allocating memory
for pResHash-&gt;treelist, we try to do a free of
pResHash-&gt;treelist-&gt;vlist without checking if pResHash-&gt;treelist
is NULL. We need to perform this NULL check before dereferencing
pResHash-&gt;treelist.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we jump to the error label due to an error allocating memory
for pResHash-&gt;treelist, we try to do a free of
pResHash-&gt;treelist-&gt;vlist without checking if pResHash-&gt;treelist
is NULL. We need to perform this NULL check before dereferencing
pResHash-&gt;treelist.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 611790 - fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166</title>
<updated>2010-08-24T00:08:55+00:00</updated>
<author>
<name>Endi S. Dewata</name>
<email>edewata@redhat.com</email>
</author>
<published>2010-07-06T17:48:01+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=e63bd50a2ee4de726c29ad656335c456b900ed9a'/>
<id>e63bd50a2ee4de726c29ad656335c456b900ed9a</id>
<content type='text'>
https://bugzilla.redhat.com/show_bug.cgi?id=611790
Resolves: bug 611790
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166
Fix description: Catch possible NULL pointer in ResHashCreate().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.redhat.com/show_bug.cgi?id=611790
Resolves: bug 611790
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166
Fix description: Catch possible NULL pointer in ResHashCreate().
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 610119 - fix coverify Defect Type: Null pointer dereferences issues 12167 - 12199</title>
<updated>2010-08-23T18:07:31+00:00</updated>
<author>
<name>Endi S. Dewata</name>
<email>edewata@redhat.com</email>
</author>
<published>2010-07-07T00:18:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=9020d0a1ba5766ae40d0aefe8b4b46e0e6903ee6'/>
<id>9020d0a1ba5766ae40d0aefe8b4b46e0e6903ee6</id>
<content type='text'>
https://bugzilla.redhat.com/show_bug.cgi?id=610119
Resolves: bug 610119
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 12167 - 12199
Fix description: Catch possible NULL pointer in LASDnsBuild().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.redhat.com/show_bug.cgi?id=610119
Resolves: bug 610119
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 12167 - 12199
Fix description: Catch possible NULL pointer in LASDnsBuild().
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 616500 - fix coverify Defect Type: Resource leaks issues CID 12094 - 12136</title>
<updated>2010-08-20T20:05:27+00:00</updated>
<author>
<name>Endi S. Dewata</name>
<email>edewata@redhat.com</email>
</author>
<published>2010-07-18T22:41:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=ec118b1ed616e7405e801179468dc101f0afdf6b'/>
<id>ec118b1ed616e7405e801179468dc101f0afdf6b</id>
<content type='text'>
https://bugzilla.redhat.com/show_bug.cgi?id=616500
Resolves: bug 616500
Bug description: fix coverify Defect Type: Resource leaks issues CID 12136
description: Fixed resource leaks in XP_MakeStringProperties().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.redhat.com/show_bug.cgi?id=616500
Resolves: bug 616500
Bug description: fix coverify Defect Type: Resource leaks issues CID 12136
description: Fixed resource leaks in XP_MakeStringProperties().
</pre>
</div>
</content>
</entry>
<entry>
<title>problems linking with -z defs</title>
<updated>2010-02-25T17:14:48+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-02-25T15:46:32+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=2cc5ac4e6de01c75d3b974146fde7f41a77b0268'/>
<id>2cc5ac4e6de01c75d3b974146fde7f41a77b0268</id>
<content type='text'>
https://bugzilla.redhat.com/show_bug.cgi?id=506206
Resolves: bug 506206
Bug Description: problems linking with -z defs
Reviewed by: nhosoi (Thanks!)
Branch: HEAD
Fix Description: Some platforms (debian) and some build checking tools
(rpmlint, others) link with -z defs to look for any undefined references at
link time.  We had several of these in various directory server objects.
1) all of the plugins need to link against libslapd.la
2) most of the plugins need to link against ldapcsdk and nspr
3) the pwdstorage plugin needs to link against LIBCRYPT, which is platform
dependent
4) various other link fixes
Platforms tested: RHEL5 x86_64
Flag Day: yes - autotool file changes
Doc impact: no
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.redhat.com/show_bug.cgi?id=506206
Resolves: bug 506206
Bug Description: problems linking with -z defs
Reviewed by: nhosoi (Thanks!)
Branch: HEAD
Fix Description: Some platforms (debian) and some build checking tools
(rpmlint, others) link with -z defs to look for any undefined references at
link time.  We had several of these in various directory server objects.
1) all of the plugins need to link against libslapd.la
2) most of the plugins need to link against ldapcsdk and nspr
3) the pwdstorage plugin needs to link against LIBCRYPT, which is platform
dependent
4) various other link fixes
Platforms tested: RHEL5 x86_64
Flag Day: yes - autotool file changes
Doc impact: no
</pre>
</div>
</content>
</entry>
<entry>
<title>Change default branding to 389 - remove lite code</title>
<updated>2009-08-11T21:17:44+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2009-08-11T20:37:44+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=886d9b9f4fd9bfd72c2c9728f13b8db1ff2793b7'/>
<id>886d9b9f4fd9bfd72c2c9728f13b8db1ff2793b7</id>
<content type='text'>
The vendor, brand, and capbrand are set in configure - we should use those
everywhere rather than have to run some sort of script over the code to
change vendor, brand, version, etc.  I've added VENDOR, BRAND, CAPBRAND
to the default defines passed to the compiler, and changed the code to use
these defines.  And instead of the unintuitively named PRODUCTTEXT macro,
we should use the already defined PRODUCT_VERSION.
This allowed me to get rid of some code.  The version was from a generated
file called dirver.h which we don't need anymore, and we don't need the perl
script dirver.pl which generated it.
The vendor string was coming from the dirlite header file.  So I also used this
as an excuse to get rid of all references to dirlite once and for all (yay!).
For the places in plain text files which are not substituted, I just used the
generic name Dirsrv or Directory Server instead of having an explicit brand
and/or version in there.

Reviewed by: nkinder (Thanks!)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The vendor, brand, and capbrand are set in configure - we should use those
everywhere rather than have to run some sort of script over the code to
change vendor, brand, version, etc.  I've added VENDOR, BRAND, CAPBRAND
to the default defines passed to the compiler, and changed the code to use
these defines.  And instead of the unintuitively named PRODUCTTEXT macro,
we should use the already defined PRODUCT_VERSION.
This allowed me to get rid of some code.  The version was from a generated
file called dirver.h which we don't need anymore, and we don't need the perl
script dirver.pl which generated it.
The vendor string was coming from the dirlite header file.  So I also used this
as an excuse to get rid of all references to dirlite once and for all (yay!).
For the places in plain text files which are not substituted, I just used the
generic name Dirsrv or Directory Server instead of having an explicit brand
and/or version in there.

Reviewed by: nkinder (Thanks!)
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug Description: Need to address 64-bit compiler warnings - part 1</title>
<updated>2008-10-08T17:29:05+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2008-10-08T17:29:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=b3797a8704696ed77b69a042e75ce5553e24b68b'/>
<id>b3797a8704696ed77b69a042e75ce5553e24b68b</id>
<content type='text'>
Reviewed by: nhosoi (Thanks!)
Fix Description: The intptr_t and uintptr_t are types which are defined as integer types that are the same size as the pointer (void *) type.  On the platforms we currently support, this is the same as long and unsigned long, respectively (ILP32 and LP64).  However, intptr_t and uintptr_t are more portable.  These can be used to assign a value passed as a void * to get an integer value, then "cast down" to an int or PRBool, and vice versa.  This seems to be a common idiom in other applications where values must be passed as void *.
For the printf/scanf formats, there is a standard header called inttypes.h which defines formats to use for various 64 bit quantities, so that you don't need to figure out if you have to use %lld or %ld for a 64-bit value - you just use PRId64 which is set to the correct value.  I also assumed that size_t is defined as the same size as a pointer so I used the PRIuPTR format macro for size_t.
I removed many unused variables and some unused functions.
I put parentheses around assignments in conditional expressions to tell the compiler not to complain about them.
I cleaned up some #defines that were defined more than once.
I commented out some unused goto labels.
Some of our header files shared among several source files define static variables.  I made it so that those variables are not defined unless a macro is set in the source file.  This avoids a lot of unused variable warnings.
I added some return values to functions that were declared as returning a value but did not return a value.  In all of these cases no one was checking the return value anyway.
I put explicit parentheses around cases like this: expr || expr &amp;&amp; expr - the &amp;&amp; has greater precedence than the ||.  The compiler complains because it wants you to make sure you mean expr || (expr &amp;&amp; expr), not (expr || expr) &amp;&amp; expr.
I cleaned up several places where the compiler was complaining about possible use of uninitialized variables.  There are still a lot of these cases remaining.
There are a lot of warnings like this:
lib/ldaputil/certmap.c:1279: warning: dereferencing type-punned pointer will break strict-aliasing rules
These are due to our use of void ** to pass in addresses of addresses of structures.  Many of these are calls to slapi_ch_free, but many are not - they are cases where we do not know what the type is going to be and may have to cast and modify the structure or pointer.  I started replacing the calls to slapi_ch_free with slapi_ch_free_string, but there are many many more that need to be fixed.
The dblayer code also contains a fix for https://bugzilla.redhat.com/show_bug.cgi?id=463991 - instead of checking for dbenv-&gt;foo_handle to see if a db "feature" is enabled, instead check the flags passed to open the dbenv.  This works for bdb 4.2 through bdb 4.7 and probably other releases as well.
Platforms tested: RHEL5 x86_64, Fedora 8 i386
Flag Day: no
Doc impact: no
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: nhosoi (Thanks!)
Fix Description: The intptr_t and uintptr_t are types which are defined as integer types that are the same size as the pointer (void *) type.  On the platforms we currently support, this is the same as long and unsigned long, respectively (ILP32 and LP64).  However, intptr_t and uintptr_t are more portable.  These can be used to assign a value passed as a void * to get an integer value, then "cast down" to an int or PRBool, and vice versa.  This seems to be a common idiom in other applications where values must be passed as void *.
For the printf/scanf formats, there is a standard header called inttypes.h which defines formats to use for various 64 bit quantities, so that you don't need to figure out if you have to use %lld or %ld for a 64-bit value - you just use PRId64 which is set to the correct value.  I also assumed that size_t is defined as the same size as a pointer so I used the PRIuPTR format macro for size_t.
I removed many unused variables and some unused functions.
I put parentheses around assignments in conditional expressions to tell the compiler not to complain about them.
I cleaned up some #defines that were defined more than once.
I commented out some unused goto labels.
Some of our header files shared among several source files define static variables.  I made it so that those variables are not defined unless a macro is set in the source file.  This avoids a lot of unused variable warnings.
I added some return values to functions that were declared as returning a value but did not return a value.  In all of these cases no one was checking the return value anyway.
I put explicit parentheses around cases like this: expr || expr &amp;&amp; expr - the &amp;&amp; has greater precedence than the ||.  The compiler complains because it wants you to make sure you mean expr || (expr &amp;&amp; expr), not (expr || expr) &amp;&amp; expr.
I cleaned up several places where the compiler was complaining about possible use of uninitialized variables.  There are still a lot of these cases remaining.
There are a lot of warnings like this:
lib/ldaputil/certmap.c:1279: warning: dereferencing type-punned pointer will break strict-aliasing rules
These are due to our use of void ** to pass in addresses of addresses of structures.  Many of these are calls to slapi_ch_free, but many are not - they are cases where we do not know what the type is going to be and may have to cast and modify the structure or pointer.  I started replacing the calls to slapi_ch_free with slapi_ch_free_string, but there are many many more that need to be fixed.
The dblayer code also contains a fix for https://bugzilla.redhat.com/show_bug.cgi?id=463991 - instead of checking for dbenv-&gt;foo_handle to see if a db "feature" is enabled, instead check the flags passed to open the dbenv.  This works for bdb 4.2 through bdb 4.7 and probably other releases as well.
Platforms tested: RHEL5 x86_64, Fedora 8 i386
Flag Day: no
Doc impact: no
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolves: #237040</title>
<updated>2007-11-30T18:07:56+00:00</updated>
<author>
<name>Noriko Hosoi</name>
<email>nhosoi@redhat.com</email>
</author>
<published>2007-11-30T18:07:56+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=3f79ae7c5db6e2c2ce02dcc8724afce76b9ea710'/>
<id>3f79ae7c5db6e2c2ce02dcc8724afce76b9ea710</id>
<content type='text'>
Summary: Remove obsolete makefiles
Description: removing leftover makefiles in the lib directory
	./lib/base/Makefile ./lib/libaccess/Makefile
	./lib/libadmin/Makefile ./lib/libsi18n/Makefile
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary: Remove obsolete makefiles
Description: removing leftover makefiles in the lib directory
	./lib/base/Makefile ./lib/libaccess/Makefile
	./lib/libadmin/Makefile ./lib/libsi18n/Makefile
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolves: #237356</title>
<updated>2007-04-27T23:48:08+00:00</updated>
<author>
<name>Noriko Hosoi</name>
<email>nhosoi@redhat.com</email>
</author>
<published>2007-04-27T23:48:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/edewata/public_git/ds.git/commit/?id=53c8d0a8f6b1fd1a52bc08dda160b977ca606006'/>
<id>53c8d0a8f6b1fd1a52bc08dda160b977ca606006</id>
<content type='text'>
Summary: Move DS Admin Code into Admin Server (Comment #9)
Description: Cleaning up unused code
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary: Move DS Admin Code into Admin Server (Comment #9)
Description: Cleaning up unused code
</pre>
</div>
</content>
</entry>
</feed>
