1 |
vapier 13/11/27 23:11:56 |
2 |
|
3 |
Added: zbar-0.10-python-crash.patch |
4 |
Log: |
5 |
Fix from Debian for crash when importing the python module. |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/zbar/files/zbar-0.10-python-crash.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/zbar/files/zbar-0.10-python-crash.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/zbar/files/zbar-0.10-python-crash.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: zbar-0.10-python-crash.patch |
16 |
=================================================================== |
17 |
https://sourceforge.net/p/zbar/patches/37/ |
18 |
|
19 |
fix from Debian for crashes when importing the python module. |
20 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702499 |
21 |
|
22 |
this doesn't happen on some arches as the data naturally ends up with zero |
23 |
data after the structure, but on some (like arm), it isn't so we crash when |
24 |
python walks the list. |
25 |
|
26 |
--- a/python/imagescanner.c |
27 |
+++ b/python/imagescanner.c |
28 |
@@ -68,6 +68,7 @@ imagescanner_get_results (zbarImageScanner *self, |
29 |
|
30 |
static PyGetSetDef imagescanner_getset[] = { |
31 |
{ "results", (getter)imagescanner_get_results, }, |
32 |
+ { NULL }, |
33 |
}; |
34 |
|
35 |
static PyObject* |