projects
/
platform
/
upstream
/
rpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modify eu-strip option to perform strip in post script of rpm package & add option...
[platform/upstream/rpm.git]
/
python
/
rpmfi-py.c
diff --git
a/python/rpmfi-py.c
b/python/rpmfi-py.c
index
4bfcc81
..
458e721
100644
(file)
--- a/
python/rpmfi-py.c
+++ b/
python/rpmfi-py.c
@@
-307,6
+307,11
@@
static PyObject * rpmfi_new(PyTypeObject * subtype, PyObject *args, PyObject *kw
fi = rpmfiNew(NULL, h, tagN, flags);
+ if (fi == NULL) {
+ PyErr_SetString(PyExc_ValueError, "invalid file data in header");
+ return NULL;
+ }
+
return rpmfi_Wrap(subtype, fi);
}