|
|
b1d0b3 |
This patch fixes: CWE-686,CWE-398
|
|
|
b1d0b3 |
|
|
|
b1d0b3 |
diff -ur db-5.3.28/src/log/log_verify_int.c new/src/log/log_verify_int.c
|
|
|
b1d0b3 |
--- db-5.3.28/src/log/log_verify_int.c 2013-09-09 17:35:08.000000000 +0200
|
|
|
b1d0b3 |
+++ new/src/log/log_verify_int.c 2021-08-05 13:33:06.378608924 +0200
|
|
|
b1d0b3 |
@@ -433,9 +433,9 @@
|
|
|
b1d0b3 |
putflag = DB_CURRENT;
|
|
|
b1d0b3 |
doput = 1;
|
|
|
b1d0b3 |
}
|
|
|
b1d0b3 |
+ if (doput)
|
|
|
b1d0b3 |
+ ret = __dbc_put(csr, &key, &data, putflag);
|
|
|
b1d0b3 |
|
|
|
b1d0b3 |
- if (doput && (ret = __dbc_put(csr, &key, &data, putflag)) != 0)
|
|
|
b1d0b3 |
- goto err;
|
|
|
b1d0b3 |
err:
|
|
|
b1d0b3 |
if (csr != NULL && (tret = __dbc_close(csr)) != 0 && ret == 0)
|
|
|
b1d0b3 |
ret = tret;
|
|
|
b1d0b3 |
diff -ur db-5.3.28/src/log/log_verify_util.c new/src/log/log_verify_util.c
|
|
|
b1d0b3 |
--- db-5.3.28/src/log/log_verify_util.c 2013-09-09 17:35:08.000000000 +0200
|
|
|
b1d0b3 |
+++ new/src/log/log_verify_util.c 2021-08-04 15:10:07.900854238 +0200
|
|
|
b1d0b3 |
@@ -2140,8 +2140,7 @@
|
|
|
b1d0b3 |
for (ret = __dbc_pget(csr, &key, &data2, &data, DB_SET); ret == 0;
|
|
|
b1d0b3 |
ret = __dbc_pget(csr, &key, &data2, &data, DB_NEXT_DUP))
|
|
|
b1d0b3 |
BDBOP(__db_put(pdb, lvh->ip, NULL, &data2, &key2, 0));
|
|
|
b1d0b3 |
- if ((ret = __del_txn_pages(lvh, ctxn)) != 0 && ret != DB_NOTFOUND)
|
|
|
b1d0b3 |
- goto err;
|
|
|
b1d0b3 |
+ ret = __del_txn_pages(lvh, ctxn);
|
|
|
b1d0b3 |
err:
|
|
|
b1d0b3 |
if (csr != NULL && (tret = __dbc_close(csr)) != 0 && ret == 0)
|
|
|
b1d0b3 |
ret = tret;
|
|
|
b1d0b3 |
diff -ur db-5.3.28/src/rep/rep_backup.c new/src/rep/rep_backup.c
|
|
|
b1d0b3 |
--- db-5.3.28/src/rep/rep_backup.c 2013-09-09 17:35:09.000000000 +0200
|
|
|
b1d0b3 |
+++ new/src/rep/rep_backup.c 2021-08-04 14:47:51.967782566 +0200
|
|
|
b1d0b3 |
@@ -542,8 +542,6 @@
|
|
|
b1d0b3 |
|
|
|
b1d0b3 |
ret = __memp_fput(dbp->mpf, ip, pagep, dbc->priority);
|
|
|
b1d0b3 |
pagep = NULL;
|
|
|
b1d0b3 |
- if (ret != 0)
|
|
|
b1d0b3 |
- goto err;
|
|
|
b1d0b3 |
err:
|
|
|
b1d0b3 |
/*
|
|
|
b1d0b3 |
* Check status of pagep in case any new error paths out leave
|
|
|
b1d0b3 |
diff -ur db-5.3.28/util/db_dump185.c new/util/db_dump185.c
|
|
|
b1d0b3 |
--- db-5.3.28/util/db_dump185.c 2013-09-09 17:35:12.000000000 +0200
|
|
|
b1d0b3 |
+++ new/util/db_dump185.c 2021-08-04 14:45:37.592794678 +0200
|
|
|
b1d0b3 |
@@ -19,7 +19,7 @@
|
|
|
b1d0b3 |
#include <stdio.h>
|
|
|
b1d0b3 |
#include <stdlib.h>
|
|
|
b1d0b3 |
#include <string.h>
|
|
|
b1d0b3 |
-
|
|
|
b1d0b3 |
+#include <unistd.h>
|
|
|
b1d0b3 |
#ifdef HAVE_DB_185_H
|
|
|
b1d0b3 |
#include <db_185.h>
|
|
|
b1d0b3 |
#else
|