Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 663011 Details for
Bug 879189
Freed pointer dereferencing discovered by Coverity
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream patch
0001-tdb-Fix-possible-crash-bugs-in-the-python-tdb-code.patch (text/plain), 1.48 KB, created by
Jakub Hrozek
on 2012-12-13 15:13:41 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Jakub Hrozek
Created:
2012-12-13 15:13:41 UTC
Size:
1.48 KB
patch
obsolete
>From 7f08365a28770fdcc1bb625d8a16d11d8f15c29a Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Tue, 11 Dec 2012 16:51:01 +0100 >Subject: [PATCH] tdb: Fix possible crash bugs in the python tdb code. > >You can't call tdb_error() for tdb_reopen() or tdb_close(), both return >the error code of close(2) and not a TDB_ERROR! > >Reviewed-by: Simo Sorce <idra@samba.org> >Reviewed-by: Jelmer Vernooij <jelmer@samba.org> >--- > lib/tdb/pytdb.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > >diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c >index ae0e6f808d74da94450f7441ded0d3ef05fafffb..cf77a2527466ae8ad7440c5b216240bf36314143 100644 >--- a/lib/tdb/pytdb.c >+++ b/lib/tdb/pytdb.c >@@ -164,7 +164,14 @@ static PyObject *obj_reopen(PyTdbObject *self) > int ret; > PyErr_TDB_RAISE_IF_CLOSED(self); > ret = tdb_reopen(self->ctx); >- PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); >+ if (ret != 0) { >+ self->closed = true; >+ PyErr_SetObject(PyExc_RuntimeError, >+ Py_BuildValue("(i,s)", >+ TDB_ERR_IO, >+ "Failed to reopen database")); >+ return NULL; >+ } > Py_RETURN_NONE; > } > >@@ -209,7 +216,13 @@ static PyObject *obj_close(PyTdbObject *self) > Py_RETURN_NONE; > ret = tdb_close(self->ctx); > self->closed = true; >- PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); >+ if (ret != 0) { >+ PyErr_SetObject(PyExc_RuntimeError, >+ Py_BuildValue("(i,s)", >+ TDB_ERR_IO, >+ "Failed to close database")); >+ return NULL; >+ } > Py_RETURN_NONE; > } > >-- >1.8.0.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 879189
:
649630
| 663011 |
663012