http://www.oracle.com/technetwork/products/berkeleydb/patch-082767.html
Problem: DB 1.85 core dumps on certain data sets when using the B+tree access
method.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
* where we decide to try and copy too much onto the left page.
* Make sure that doesn't happen.
*/
- if (skip <= off && used + nbytes >= full) {
+ if (skip <= off && used + nbytes >= full || nxt == top - 1) {
--off;
break;
}
Release: 11
Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
# db-1.85 upstream patches
-Patch11: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.2
Patch12: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.3
Patch13: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.4
# other patches
%setup -q -n db-%{version}
pushd db.1.85
-%patch11 -p0 -b .1.2
%patch12 -p0 -b .1.3
%patch13 -p0 -b .1.4
%patch20 -p1 -b .errno
+++ /dev/null
-*** btree/bt_split.c Tue Jul 26 14:22:02 1994
---- btree/bt_split.c Sat Jan 4 14:38:55 1997
-***************
-*** 673,679 ****
- * where we decide to try and copy too much onto the left page.
- * Make sure that doesn't happen.
- */
-! if (skip <= off && used + nbytes >= full) {
- --off;
- break;
- }
---- 673,679 ----
- * where we decide to try and copy too much onto the left page.
- * Make sure that doesn't happen.
- */
-! if (skip <= off && used + nbytes >= full || nxt == top - 1) {
- --off;
- break;
- }